You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
* This method ensures that the app was packaged with a JS bundle
201
+
* file, and if not, it throws the appropriate exception.
202
+
*/
203
+
+ (void)ensureBinaryBundleExists
204
+
{
205
+
if (![selfbinaryBundleURL]) {
206
+
NSString *errorMessage;
207
+
208
+
#if TARGET_IPHONE_SIMULATOR
209
+
errorMessage = @"React Native doesn't generate your app's JS bundle by default when deploying to the simulator. "
210
+
"If you'd like to test CodePush using the simulator, you can do one of three things depending on your React "
211
+
"Native version and/or preferred workflow:\n\n"
212
+
213
+
"1. Update your AppDelegate.m file to load the JS bundle from the packager instead of from CodePush. "
214
+
"You can still test your CodePush update experience using this workflow (debug builds only).\n\n"
215
+
216
+
"2. Force the JS bundle to be generated in simulator builds by removing the if block that echoes "
217
+
"\"Skipping bundling for Simulator platform\" in the \"node_modules/react-native/packager/react-native-xcode.sh\" file.\n\n"
218
+
219
+
"3. Deploy a release build to the simulator, which unlike debug builds, will generate the JS bundle (React Native >=0.22.0 only).";
220
+
#else
221
+
errorMessage = [NSStringstringWithFormat:@"The specified JS bundle file wasn't found within the app's binary. Is \"%@\" the correct file name?", [bundleResourceName stringByAppendingPathExtension:bundleResourceExtension]];
0 commit comments