CocoaPods升級
sudo gem install cocoapods --pre
如果出現(xiàn) 錯誤:
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: cocoapods requires molinillo
則需要更新 gem 運行一下命令
sudo gem update --system
如果出現(xiàn) 錯誤:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
則需要
sudo gem install -n /usr/local/bin cocoapods --pre
查看Pods中已過期的第三方開源庫:
pod outdated
在 Mac 上用 SourceTree 克隆, 出現(xiàn)了 warning: templates not found /usr/local/git/share/git-core/templates 警告,導(dǎo)致克隆失敗的解決辦法:
/// 創(chuàng)建目錄
sudo mkdir -p /usr/local/git/share/git-core/templates
/// 給修改目錄添加權(quán)限
sudo chmod -R 755 /usr/local/git/share/git-core/templates
pod install后出現(xiàn)一下警告時的處理方式:
[!] `<PBXResourcesBuildPhase UUID=`xxx`>` attempted to initialize an object with an unknown UUID. `0B6359431C33CA0200C80C5D` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
解決方法:
1.移除General->Linked Frameworks and libraries中的libPods.a
2.退出xcode
3.在終端重新pod install即可
菜鳥筆記篡腌!