Skip to content

Commit fb582d4

Browse files
authored
Merge pull request #836 from OneSignal/fix/arm_simulator_support
Add arm64 slice to XCFramework simulator build
2 parents 4bd1db7 + 36cad6a commit fb582d4

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)