File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,21 +130,25 @@ async function testRNTesterIOS(
130130
131131 // install app on device
132132 exec ( `xcrun simctl install booted ${ appOutputFolder } ` ) ;
133-
134- // launch the app on iOS simulator
135- exec ( 'xcrun simctl launch booted com.meta.RNTester.localDevelopment' ) ;
136133 } else {
137134 exec (
138135 `USE_HERMES=${
139136 argv . hermes === true ? 1 : 0
140137 } CI=${ onReleaseBranch . toString ( ) } RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --ansi`,
141138 ) ;
142139
143- // launch the app on iOS simulator
140+ // build the app on iOS simulator
141+ exec (
142+ 'xcodebuild -workspace RNTesterPods.xcworkspace -scheme RNTester -sdk "iphonesimulator" -destination "generic/platform=iOS Simulator" -derivedDataPath "/tmp/RNTesterBuild"' ,
143+ ) ;
144+
145+ exec ( 'xcrun simctl boot "iPhone 16 Pro"' ) ;
144146 exec (
145- 'npx react-native run-ios --scheme RNTester --simulator "iPhone 15 Pro "' ,
147+ 'xcrun simctl install booted "/tmp/RNTesterBuild/Build/Products/Debug-iphonesimulator/RNTester.app "' ,
146148 ) ;
149+ exec ( 'open -a simulator' ) ;
147150 }
151+ exec ( 'xcrun simctl launch booted com.meta.RNTester.localDevelopment' ) ;
148152}
149153
150154/**
You can’t perform that action at this time.
0 commit comments