Command Line Tool - Error - xcrun: error: unable to find utility “xcodebuild”, not a developer tool or in PATH

后端 未结 2 984
旧巷少年郎
旧巷少年郎 2020-12-12 11:04

I am getting this error while building the SwiftJSON framework to the Some Xcode project through Carthage Dependency Manager.

Sivaramaiah

2条回答
  •  囚心锁ツ
    2020-12-12 11:40

    The simplest fix is from CLI:

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

    (this should be path to your Xcode.app)

    By the way this can happen even if you have only one version of Xcode . It happens when you instal homebrew before the first Xcode installation (which makes sense because you may want to install Xcode through mas install 497799835 and mas needs homebrew).

提交回复
热议问题