This repository was archived by the owner on May 20, 2025. It is now read-only.

Description
Description
After upgrading to RN v0.43 and CodePush v2.0.2-beta, I can no longer run iOS release builds. This happened on my own app, as well as the example app in this repo. It works fine on Android.
Whether running from Xcode or using run-ios, the app fails in [ensureBinaryBundleExists] with the error
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 three things depending on your React Native version and/or preferred workflow:
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).
2. 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.
3. Deploy a release build to the simulator, which unlike debug builds, will generate the JS bundle (React Native >=0.22.0 only).
I've done thing 1 exactly as suggested in the README, tried thing 2 to no avail, and thing 3 does not make sense because this is a release build. It used to work successfully for the past several months, until now.
Repro steps
- Check out this repo and try to run the example app (e.g.
yarn install; react-native run-ios)
Additional Information
- react-native-code-push version:
2.0.2-beta
- react-native version:
0.43.3
- react version:
16.0.0-alpha.6
- iOS version: iPhone 6s / iPhone 7 simulator