cocoapod报错

bogon:imate anran$ pod install

xcrun: error: active developer path ("/Applications/Xcode7.2.1.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

xcrun: error: active developer path ("/Applications/Xcode7.2.1.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

Setting up CocoaPods master repo

xcrun: error: active developer path ("/Applications/Xcode7.2.1.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.

You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.



解决方法:sudo xcode-select-switch/Applications/Xcode.app/Contents/Developer

你可能感兴趣的:(cocoapod报错)