Skip to content

Commit a81f6be

Browse files
committed
[LOCAL][RN][Release] Fix E2E test script when the ci flag is not specified
1 parent 10b63c1 commit a81f6be

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
@@ -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
/**

0 commit comments

Comments
 (0)