我的终端上的"pod setup"命令出错(Cocoapods安装)

IKK*_*KKA 1 ruby ios cocoapods xcode6

我在我的mac上成功安装了可可豆荚,我的终端上收到了这样的信息..

已成功安装cocoapods-0.33.1安装了cocoapods-0.33.1 1 gem的解析文档.

在此之后我在我的终端上运行以下命令(MacBook-Pro:~user $ pod设置)然后我收到这样的错误消息.

设置的CocoaPods掌握回购的/ usr /斌/ GIT中克隆'[!] https://github.com/CocoaPods/Specs.git '主--depth = 1 xcrun:错误:活性显影剂路径("/卷/ Xcode中/ Xcode.app/Contents/Developer")不存在,使用xcode-select进行更改.

如何解决这个问题?请帮帮我..

Kei*_*ley 5

看起来您的Xcode版本的路径已损坏.您可以看到路径设置为:

xcode-select --print-path
Run Code Online (Sandbox Code Playgroud)

你可能会看到/Volumes/Xcode/Xcode.app/Contents/Developer哪些不存在.您需要设置路径:

xcode-select --switch /path/to/xcode
Run Code Online (Sandbox Code Playgroud)