Response-native Missing Package URL

I get the following error when trying to make react-native run-ios (see screenshot below). I checked this answer as well as the github branch , but none of them helped.

Any ideas what to look for or how to make it work? The problem seems to be isolated from ios, as the android emulator is working fine. It seems like this is some kind of error with the Facebook code.

enter image description here

+7
source share
7 answers

I resolved it using the following solution:

Change <your_project_folder>/ios/<project_name>/AppDelegate.m and change the jsCodeLocation variable as follows:

 jsCodeLocation = [NSURL URLWithString:@"http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true"]; 
+6
source

For those who are still interested, I solved this by simply running

 react-native start 

which starts the packer in the current terminal window and runs in another terminal window

 react-native run-ios 
+6
source

This happens to me when I work on the same reaction project on different computers. Closing the simulator and deleting the ios > build folder and then running react-native run-ios solve it again for me.

+2
source

I also got this development error. Try this solution in a simulator:

  • Hold shift + cmd + H twice to open running applications.

  • Then swipe your app you would like to get rid of.

  • Click on your app.

It worked for me by looking at countless solutions, and that was all I really needed to do! Hope this helps.

+1
source

Try this after the simulator is already running:

npm install

reaction-native run-ios

0
source

For me, I had no watchman. To check if it is installed, from your terminal you can run the brew list . If you do not see the observer in the list, just run brew install watchman .

NOTE. If you get this error during installation:

 Error: Xcode alone is not sufficient on Sierra. Install the Command Line Tools: xcode-select --install 

You need to install the Xcode command line tools. So, from your terminal, run xcode-select --install . After completing the installation of the tools, you will need to restart brew install watchman . Then you can start your project by running react-native run-ios .

0
source

The reason is because, since the main.js file inside iOS is not generated ever or for some time, it is created incorrectly. To resolve this issue, follow these steps:

  1. Add the following line inside the package.json scripts

    "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"

  2. Then run the following command:

    yarn build:ios or npm run build:ios

  3. Open your Xcode selection project, then click on the project name, go to the faces of the assembly, then click on copy assembly resources as your main.js package there

  4. Run responsive native run-ios
  5. This is work for me
0
source

Source: https://habr.com/ru/post/1265777/


All Articles