Skip to content

Commit 0038af1

Browse files
committed
test(ios): specify a destination for xcodebuild
this did not used to be necessary but new Xcode seemingly requires it
1 parent 72bbef6 commit 0038af1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/.detoxrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ module.exports = {
1414
type: 'ios.app',
1515
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/testing.app',
1616
build:
17-
'set -o pipefail && xcodebuild VALID_ARCHS="`uname -m`" CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build | xcbeautify',
17+
'set -o pipefail && xcodebuild VALID_ARCHS="`uname -m`" CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -destination "name=iPhone 16" | xcbeautify',
1818
},
1919
'ios.release': {
2020
type: 'ios.app',
2121
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/testing.app',
2222
build:
23-
'export RCT_NO_LAUNCH_PACKAGER=true && set -o pipefail | xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Release -sdk iphonesimulator -derivedDataPath ios/build | xcbeautify',
23+
'export RCT_NO_LAUNCH_PACKAGER=true && set -o pipefail | xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -destination "name=iPhone 16" | xcbeautify',
2424
},
2525
'android.debug': {
2626
type: 'android.apk',
@@ -48,6 +48,7 @@ module.exports = {
4848
simulator: {
4949
type: 'ios.simulator',
5050
device: {
51+
// Also used by name and must be in sync with build commands above
5152
type: 'iPhone 16',
5253
},
5354
},

0 commit comments

Comments
 (0)