Skip to content

Commit 2ed7bfa

Browse files
committed
fix(ci): use generic iOS Simulator destination for CI build
The CI build was failing because the xcodebuild destination specified OS=18.6 which may not have simulators pre-created on all macos-15 runner instances. Use generic/platform=iOS Simulator for the build step, and drop the pinned os version from the detox device config so it picks whatever is available.
1 parent 4ca05a0 commit 2ed7bfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/.detoxrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
'ios.debug.ci': {
2424
type: 'ios.app',
2525
build:
26-
"FORCE_BUNDLING=1 xcodebuild -quiet -workspace ios/RNMapboxExample.xcworkspace -configuration Debug -scheme RNMapboxExample DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING=1 GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS DEBUG_RCT_BUNDLE=1' -sdk iphonesimulator -derivedDataPath ios/build -destination 'platform=iOS Simulator,OS=18.6,arch=arm64,name=iPhone SE (3rd generation)'",
26+
"FORCE_BUNDLING=1 xcodebuild -quiet -workspace ios/RNMapboxExample.xcworkspace -configuration Debug -scheme RNMapboxExample DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING=1 GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS DEBUG_RCT_BUNDLE=1' -sdk iphonesimulator -derivedDataPath ios/build -destination 'generic/platform=iOS Simulator'",
2727
binaryPath:
2828
'ios/build/Build/Products/Debug-iphonesimulator/RNMapboxExample.app',
2929
},
@@ -40,7 +40,6 @@ module.exports = {
4040
type: 'ios.simulator',
4141
device: {
4242
type: 'iPhone SE (3rd generation)',
43-
os: '18.2',
4443
},
4544
},
4645
},

0 commit comments

Comments
 (0)