3

I have a debug and release configuration. I've duplicated debug scheme and configuration, and set the new (duplicate of debug) scheme to the duplicate of debug configuration. I've had to manually set DEBUG=1 to the new configuration too (for some reason it doesn't get copied).

Now in the new configuration when I hit the return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; line it returns nil and crashes with the following error:

No bundle URL present.
Make sure you're running a packager server or have included a .jsbundle file in your application bundle.

Metro is running. If I switch to the default Debug scheme, it works normally and [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"] returns http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=my.bundle.id.redacted which is correct and working.

Why isn't my duplicated scheme/config (that only has bundle ID overridden), which is a direct duplicate of my working Debug scheme/config returning nil for the JS bundle path?

asked May 27, 2023 at 19:21
1
  • 1
    Having the same issue when I'm trying to upgrade from RN 0.68.7 to 0.72...did you ever figure it out? Commented Dec 14, 2023 at 15:26

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.