question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicating Debug Configuration Does Not Connect to Packager on iOS

See original GitHub issue

Description

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.

  1. Duplicate Debug Build Configuration in XCode, name it DebugQA
  2. Modify scheme Run confiuration to point to DebugQA
  3. cd ios && pod install && cd ..
  4. start bundler react-native start
  5. react-native run-ios
  6. app builds, installs, launches
  7. 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:12

github_iconTop GitHub Comments

6reactions
joaoguilhermeecommented, Jan 20, 2021

Same issue here, think this should be reopen

0reactions
marcshillingcommented, Jun 11, 2021

Just ran into this, anyone ever solve it?

Edit: this comment resolved my issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicating debug configuration for multi Scheme is not ...
Now my situation is if I am running the scheme locally( as for run the debug configuration is set) then I'm falling into...
Read more >
Installing app variants on the same device
Learn how to install multiple instances of an app on the same device.
Read more >
Xcode 12 beta 4 - error compiling … | Apple Developer Forums
But when i run the same code base with xcode 11.3.1 then it works fine for me . Right now i am unable...
Read more >
Troubleshooting iOS - OneSignal Documentation
Common setup issues with iOS. ... For Swift Package Manager ... when iOS doesn't fire a success or failure message if a connection...
Read more >
React Native | WebStorm Documentation - JetBrains
This connection may fail because WebStorm by default uses localhost to start debugging while Expo expects 127.0.0.1 or an external IP address ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found