Fix syntax crash in create_xcframework_func.sh.

This commit is contained in:
Bill Hollings 2020-09-11 15:01:03 -04:00
parent 51777ca49c
commit 9406fce556

View File

@ -20,9 +20,9 @@ function create_xcframework() {
prod_lib_path="${prod_staging_dir}/lib${prod_name}.a" prod_lib_path="${prod_staging_dir}/lib${prod_name}.a"
if [[ -e "${prod_lib_path}" ]]; then if [[ -e "${prod_lib_path}" ]]; then
xcfwk_cmd+=" -library \"${prod_lib_path}\"" xcfwk_cmd+=" -library \"${prod_lib_path}\""
if [[ -e "${hdr_path}" ]]; then # if [[ -e "${hdr_path}" ]]; then
# xcfwk_cmd+=" -headers \"${hdr_path}\"" # Headers currently break build due to Xcode 12 ProcessXCFramework bug: https://developer.apple.com/forums/thread/651043?answerId=628400022#628400022 # xcfwk_cmd+=" -headers \"${hdr_path}\"" # Headers currently break build due to Xcode 12 ProcessXCFramework bug: https://developer.apple.com/forums/thread/651043?answerId=628400022#628400022
fi # fi
fi fi
done done