Skip to content

Commit

Permalink
Update text for updated RN PR
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Sep 7, 2017
1 parent c2aa9d9 commit 6690171
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ios/CodePush/CodePush.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,20 +331,20 @@ + (void)ensureBinaryBundleExists

#ifdef DEBUG
#if TARGET_IPHONE_SIMULATOR
errorMessage = @"React Native doesn't generate your app's JS bundle by default for Debug builds. "
"If you'd like to test CodePush using a Debug build, you can do one of the following, depending on your "
errorMessage = @"React Native doesn't generate your app's JS bundle by default when deploying to the simulator. "
"If you'd like to test CodePush using the simulator, you can do one of the following depending on your "
"React Native version and/or preferred workflow:\n\n"

"1. Update your AppDelegate.m file to load the JS bundle from the packager instead of from CodePush. "
"You can still test your CodePush update experience using this workflow (Debug builds only).\n\n"

"2. Force the JS bundle to be generated in Debug builds by enabling the FORCE_BUNDLING flag under "
"\"Build Phases\" > \"Bundle React Native code and images\" (React Native >=0.47 only)\n\n"
"2. Force the JS bundle to be generated in simulator builds by enabling the FORCE_BUNDLING flag under "
"\"Build Phases\" > \"Bundle React Native code and images\" (React Native >=0.48 only).\n\n"

"3. Force the JS bundle to be generated in Debug builds by removing the if block that echoes "
"\"Skipping bundling for Simulator platform\" in the \"node_modules/react-native/packager/react-native-xcode.sh\" file (React Native <=0.46 only)\n\n"
"3. Force the JS bundle to be generated in simulator builds by removing the if block that echoes "
"\"Skipping bundling for Simulator platform\" in the \"node_modules/react-native/packager/react-native-xcode.sh\" file (React Native <=0.47 only)\n\n"

"4. Deploy a Release build, which unlike Debug builds, will generate the JS bundle (React Native >=0.22 only).";
"4. Deploy a Release build to the simulator, which unlike Debug builds, will generate the JS bundle (React Native >=0.22.0 only).";
#else
errorMessage = [NSString stringWithFormat:@"The specified JS bundle file wasn't found within the app's binary. Is \"%@\" the correct file name?", [bundleResourceName stringByAppendingPathExtension:bundleResourceExtension]];
#endif
Expand Down

0 comments on commit 6690171

Please sign in to comment.