在運(yùn)行 “sudo gem install cocoapods” 的時(shí)候出現(xiàn)問(wèn)題:ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match
則可以改為:
sudo gem install -n /usr/local/bin cocoapods
最近好像cocoapods 發(fā)出了1.0的版本。我試著去更新了一下。
sudo gem install -n /usr/local/bin cocoapods --pre
非常nice的就更新了。
$ pod install
Analyzing dependencies
Fetching podspec for UAAppReviewManager from ..
[!] Unable to satisfy the following requirements:
-
UAAppReviewManager (from..)required byPodfile
原因是要添加的類庫(kù)已經(jīng)有最新版本推出,而Podfile文件并沒有更改其下載版本(Podfile文件過(guò)期),于是獲取安裝數(shù)據(jù)失敗。
因此我們要用update命令獲取最新版本的類庫(kù):