Error Running React Native App From Terminal (iOS)

前端 未结 13 2708
借酒劲吻你
借酒劲吻你 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: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):

提交回复
热议问题