Skip to content

Commit 58e5a95

Browse files
committed
add arm64 slice to simulator build
In order to support Apple Silicon macs we need to add arm64 to iOS simulator builds. This only works with XCFrameworks since we also need arm64 for iOS devices.
1 parent 34eb315 commit 58e5a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/build_xcframework.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mkdir "${FRAMEWORK_FOLDER_NAME}"
2323
echo "Created ${FRAMEWORK_FOLDER_NAME}"
2424
echo "Archiving ${FRAMEWORK_NAME}"
2525

26-
xcodebuild archive -scheme ${BUILD_SCHEME} -destination="iOS Simulator" -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
26+
xcodebuild archive ONLY_ACTIVE_ARCH=NO -scheme ${BUILD_SCHEME} -destination="iOS Simulator" -arch i386 -arch x86_64 -arch arm64 -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
2727

2828
xcodebuild archive -scheme ${BUILD_SCHEME} -destination="iOS" -archivePath "${IOS_DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
2929

0 commit comments

Comments
 (0)