程序员iOS学习笔记iOS 开发

Xcode路径改变导致CocoaPods报错的解决办法

2016-08-30  本文已影响146人  KennyHito
个人链接
微信公众号.jpg
Setting up CocoaPods master repo
$ /usr/bin/git remoteset-urlorigin https://github.com/CocoaPods/Specs.git
xcrun:error: active developerpath("/Applications/Xcode.app/Contents/Developer") doesnotexist,use`xcode-select --switch path/to/Xcode.app`tospecify the Xcode that you wishtouseforcommand line developer tools (orsee`man xcode-select`)
[!]Failed: /usr/bin/git remoteset-urlorigin https://github.com/CocoaPods/Specs.git
$ /usr/bin/git checkoutmaster
xcrun:error: active developerpath("/Applications/Xcode.app/Contents/Developer") doesnotexist,use`xcode-select --switch path/to/Xcode.app`tospecify the Xcode that you wishtouseforcommand line developer tools (orsee`man xcode-select`)
[!]Failed: /usr/bin/git checkoutmaster
[!] Unabletoaddasourcewithurl`https://github.com/CocoaPods/Specs.git`named`master-1`.
(The`master`repoisnota git repo.)
You can try adding it manuallyin`~/.cocoapods/repos`orvia`pod repo add`.

声明

上一篇下一篇

猜你喜欢

热点阅读