Duplicating Debug Configuration Does Not Connect to Packager on iOS
See original GitHub issueDescription
I am trying to simply switch the Run Phase for iOS that points to Debug
to a new configuration, DebugQA
I have duplicated the Debug
configuration to DebugQA
and everything works great except when the app launches. It crashes with:
No bundle URL present.\n\nMake sure you're running a packager server or have included a .jsbundle file in your application bundle.
React Native version:
react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Duplicate
Debug
Build Configuration in XCode, name itDebugQA
- Modify scheme Run confiuration to point to
DebugQA
cd ios && pod install && cd ..
- start bundler
react-native start
react-native run-ios
- app builds, installs, launches
- Error:
No bundle URL present.\n\nMake sure you're running a packager server or have included a .jsbundle file in your application bundle.
Expected Results
I would expect this new config to behave just like the existing Debug
config and connect to metro bundler/ packager.
I have made sure the metro bundler is running and if I switch the Run configuration back to Debug
it works fine. It’s almost as if the app’s new config isn’t making the GET
for the bundle from the metro bundler.
Making a GET
to the bundler outside of the app responds just fine.
::1 - - [23/Apr/2020:17:26:56 +0000] "GET /favicon.ico HTTP/1.1" 404 150 "http://localhost:8081/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36"
I’ve had success building other packages using this method however never creating a new Debuggable config that tries to connect to metro bundler. Any help is greatly appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:12
Top GitHub Comments
Same issue here, think this should be reopen
Just ran into this, anyone ever solve it?
Edit: this comment resolved my issue