Error Running React Native App From Terminal (iOS)

前端 未结 13 2705
借酒劲吻你
借酒劲吻你 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 15:51

    In my case the problem was that Xcode was not installed.

    0 讨论(0)
  • 2020-12-22 15:53

    For any such problem:

    1. Go to .expo folder
    2. Find apk-cache
    3. Remove that folder

    and you are done..

    Hope it helps?

    0 讨论(0)
  • 2020-12-22 15:55

    Check out this link (Running react-native run-ios occurs an error?). It appears to be a problem with the location of Command line tools.

    In Xcode, select Xcode menu, then Preferences, then Locations tab. Select your Xcode version from the dropdown and exit Xcode.

    0 讨论(0)
  • 2020-12-22 15:57

    Problem is your Xcode version is not set on Command Line Tools, to solve this problem open Xcode>Menu>preferences> location> here for Command Line tools select your Xcode version, that's it.

    0 讨论(0)
  • 2020-12-22 15:58

    You may need to install or set the location of the Xcode Command Line Tools.

    Via command line

    If you have Xcode downloaded you can run the following to set the path:

    sudo xcode-select -s /Applications/Xcode.app
    

    If the command line tools haven't been installed yet, you may need to run this first:

    xcode-select --install
    

    You may need to accept the Xcode license before installing command line tools:

    sudo xcodebuild -license accept 
    

    Via Xcode

    Or adjust the Command Line Tools setting via Xcode (Xcode > Preferences > Locations):

    0 讨论(0)
  • 2020-12-22 15:59

    For me, it turns out that there was an iOS system update pending asking to restart the computer. Restart and let the update finish solved my problem.

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