Skip to content

Commit ec8ff1b

Browse files
committed
add bitcode generation mode argument
1 parent 06a8c1b commit ec8ff1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/create-xcframework-zips.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ OUTPUT_FOLDER=build
1111
rm -rf "${OUTPUT_FOLDER}"
1212

1313
# -destination="iOS" -- seems like "-sdk iphoneos" is needed and not this?
14-
xcodebuild archive -scheme "swift-sdk" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES -archivePath "./${OUTPUT_FOLDER}/IterableSDK-iOS" -sdk iphoneos
14+
xcodebuild archive -scheme "swift-sdk" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BITCODE_GENERATION_MODE=bitcode -archivePath "./${OUTPUT_FOLDER}/IterableSDK-iOS" -sdk iphoneos
1515

1616
# -destination="iOS Simulator" -- seems like "-sdk iphonesimulator" is needed and not this?
17-
xcodebuild archive -scheme "swift-sdk" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES -archivePath "./${OUTPUT_FOLDER}/IterableSDK-Simulator" -sdk iphonesimulator
17+
xcodebuild archive -scheme "swift-sdk" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES BITCODE_GENERATION_MODE=bitcode -archivePath "./${OUTPUT_FOLDER}/IterableSDK-Simulator" -sdk iphonesimulator
1818

1919
# create IterableSDK.xcframework
2020
xcodebuild -create-xcframework \

0 commit comments

Comments
 (0)