File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,19 +113,23 @@ async function testRNTesterIOS(
113113
114114 // install app on device
115115 exec ( `xcrun simctl install booted ${ appOutputFolder } ` ) ;
116-
117- // launch the app on iOS simulator
118- exec ( 'xcrun simctl launch booted com.meta.RNTester.localDevelopment' ) ;
119116 } else {
120117 exec (
121118 `USE_HERMES=1 CI=${ onReleaseBranch . toString ( ) } RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --ansi` ,
122119 ) ;
123120
124- // launch the app on iOS simulator
121+ // build the app on iOS simulator
122+ exec (
123+ 'xcodebuild -workspace RNTesterPods.xcworkspace -scheme RNTester -sdk "iphonesimulator" -destination "generic/platform=iOS Simulator" -derivedDataPath "/tmp/RNTesterBuild"' ,
124+ ) ;
125+
126+ exec ( 'xcrun simctl boot "iPhone 16 Pro"' ) ;
125127 exec (
126- 'npx react-native run-ios --scheme RNTester --simulator "iPhone 15 Pro "' ,
128+ 'xcrun simctl install booted "/tmp/RNTesterBuild/Build/Products/Debug-iphonesimulator/RNTester.app "' ,
127129 ) ;
130+ exec ( 'open -a simulator' ) ;
128131 }
132+ exec ( 'xcrun simctl launch booted com.meta.RNTester.localDevelopment' ) ;
129133}
130134
131135/**
You can’t perform that action at this time.
0 commit comments