diff --git a/local-cli/generator-ios/templates/app/AppDelegate.m b/local-cli/generator-ios/templates/app/AppDelegate.m index 6cf213bd4cbdde..909092b9cc757a 100644 --- a/local-cli/generator-ios/templates/app/AppDelegate.m +++ b/local-cli/generator-ios/templates/app/AppDelegate.m @@ -36,7 +36,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( /** * OPTION 2 * Load from pre-bundled file on disk. The static bundle is automatically - * generated by "Bundle React Native code and images" build step. + * generated by the "Bundle React Native code and images" build step when + * running the project on an actual device or running the project on the + * simulator in the "Release" build configuration. */ // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; diff --git a/packager/react-native-xcode.sh b/packager/react-native-xcode.sh index 66ecea85464ca9..9e6ffbe438c997 100755 --- a/packager/react-native-xcode.sh +++ b/packager/react-native-xcode.sh @@ -10,15 +10,15 @@ # This script is supposed to be invoked as part of Xcode build process # and relies on environment variables (including PWD) set by Xcode -# There is no point in creating an offline package for simulator builds -# because the packager is supposed to be running during development anyways -if [[ "$PLATFORM_NAME" = "iphonesimulator" ]]; then - echo "Skipping bundling for Simulator platform" - exit 0; -fi - case "$CONFIGURATION" in Debug) + # Speed up build times by skipping the creation of the offline package for debug + # builds on the simulator since the packager is supposed to be running anyways. + if [[ "$PLATFORM_NAME" = "iphonesimulator" ]]; then + echo "Skipping bundling for Simulator platform" + exit 0; + fi + DEV=true ;; "")