“Invariant Violation: Application AwesomeProject has not been registered” When building for iOS device with static jsbundle

后端 未结 14 2378
刺人心
刺人心 2020-12-08 18:20

First off, I don\'t know react, but I figured deploying to an iOS device instead of the simulator wouldn\'t be too difficult to do with the docs. They were a bit sparse but

14条回答
  •  忘掉有多难
    2020-12-08 18:51

    Reference a nameless person.

    it works for me.


    I had almost the same problem you currently have a few days ago. For me it was a real device.

    From all my research, the solution that worked for me is the following:

    1. When you launch your app by typing react-native run-android, the error appears.
    2. So, reach your directory containing "adb.exe" ( for me it was
      C:\Users\username\AppData\Local\Android\Sdk\platform-tools\ )
    3. open a terminal from here. And type adb reverse tcp:8081 tcp:8081
    4. Then, by reloading the app on the phone, it should work.

提交回复
热议问题