Skip to content

Commit 06a9923

Browse files
author
Jonas Borsch
committed
Adjust zip to support binaryTarget when using SPM
1 parent 6e32dc1 commit 06a9923

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/create-frameworks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ xcrun xcodebuild -quiet -create-xcframework \
9999
-output "${BASE_PWD}/Frameworks/${FWNAME}.xcframework"
100100

101101
# Zip archive
102-
zip --symlinks -r "${BASE_PWD}/Frameworks/${FWNAME}.xcframework.zip" "${BASE_PWD}/Frameworks/${FWNAME}.xcframework"
102+
pushd "${BASE_PWD}/Frameworks"
103+
zip --symlinks -r "./${FWNAME}.xcframework.zip" "./${FWNAME}.xcframework"
104+
popd
103105

104-
rm -rf ${OUTPUT_DIR}
106+
rm -rf "${OUTPUT_DIR}"

0 commit comments

Comments
 (0)