cocoaPods問(wèn)題處理
1篮绰、[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.Git' master
xcrun: error: active developer path ("/Users/xiakejie/工具/Xcode 2.app/Contents/Developer") does not exist, use xcode-select to change
解決上面這個(gè)問(wèn)題, 使用這個(gè)命令: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
2杉武、查看版本
pod --version
3、更新cocoapods
sudo gem install cocoapods
如果出現(xiàn)報(bào)錯(cuò)
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
解決辦法:
sudo gem install -n /usr/local/bin cocoapods
4、更新本地倉(cāng)庫(kù)
pod repo update
如果搜索不到休蟹,可以用這個(gè)勋篓,
rm ~/Library/Caches/CocoaPods/search_index.json