Skip to content

Commit cdd7f99

Browse files
authored
[LOCAL][RN][Release] Fix E2E test script when the ci flag is not specified (#52609)
1 parent d8bf944 commit cdd7f99

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

scripts/release-testing/test-e2e-local.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)