-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle. unsanitizedScriptURLString = (null) #49245
Comments
I just tried with these instructions:
This:
This works. So the problem is not in React Native, but in one of the tools you are using in your app. ![]() What are you using for development? Can you try to open an issue in the Reactatron repo, instead? |
@cipolleschi i know it work if i create a project from scratch. but i have a big application created already in react native 0.76.6, i upgrade it to 0.77.0. i remove AppDelegate.mm, AppDelegate.h and main.m and i replaced it by AppDelegate.swift (ios platform) as mention upgrade helper (https://react-native-community.github.io/upgrade-helper/) |
I am having the same problem with "react-native": "0.76.6" I don't fully understand the reason for the error, it sometimes occurs. To solve this, connect to the physical device with a cable and run "npx expo run ios --device " build again and you are at the place where you are installing it on my device. note: @TonyFTannous-Byd I don't think reactotron is the cause of this error because I can't use it from the app |
@gurbuzzomer |
Yes, that could be the case. As mentioned in the blogpost and in the documentation:
You need to keep the Objective-C++ App Delegate |
yes, and if you want to use swift file the problem is in DEBUG flag in AppDelegate.swift override func bundleURL() -> URL? { You should add Inside project.pbxproj in debug XCBuildConfiguration block Should look like this 83CBBA201A601CBA00E9B192 /* Debug / = { |
@TonyFTannous-Byd our Cocoapods scripts should inject that flag for you: https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L422 Make sure to call the |
@cipolleschi without adding SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; Inside project.pbxproj in debug XCBuildConfiguration block the issue will not resolved |
I have the same issue, anyone found how to fix this ? |
Exact same problem! any solution? |
When the error occurs, the node server is not started, so you can try the following two methods:
I think this problem should be solved by injecting a script. I will add more details after I understand the specific method. |
Update your physical ios device software to latest version. |
@anujkumar09062001 |
Hello,
i already called eact_native_post_install as you mention, still same issue. i resolve it by set programatly SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
after that cd ios & pod install |
Description
I upgrade my react native app from 0.76.6 to 0.77.0. The build has successfully but i have the following error in ios platform (android go well)
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.
unsanitizedScriptURLString = (null)
Steps to reproduce
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.
unsanitizedScriptURLString = (null)
React Native Version
0.77.0
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/TonyFTannous-Byd/repo
Screenshots and Videos
The text was updated successfully, but these errors were encountered: