Error Running React Native App From Terminal (iOS)

前端 未结 13 2706
借酒劲吻你
借酒劲吻你 2020-12-22 15:43

I am following the tutorial on the official React Native website.

Using the following to build my project:

react-native run-ios

I g

相关标签:
13条回答
  • 2020-12-22 16:16

    None of these solutions worked for me. These two similar problems offer temporary solutions that worked, it seems the simulator process isn't being shutdown correctly:

    Killing Simulator Processes

    From https://stackoverflow.com/a/52533391/11279823

    1. Quit the simulator & Xcode.
    2. Opened Activity monitor, selected cpu option and search for sim, killing all the process shown as result.
    3. Then fired up the terminal and run sudo xcrun simctl erase all. It will delete all content of all simulators. By content if you logged in somewhere password will be gone, all developer apps installed in that simulator will be gone.

    Opening Simulator before starting the package

    From https://stackoverflow.com/a/55374768/11279823

    open -a Simulator; npm start

    Hopefully a permanent solution is found.

    0 讨论(0)
提交回复
热议问题