Xcode工程使用CocoaPods管理第三方庫新建工程時出現錯誤 工程使用CocoaPods管理第三方庫,在新的目錄update版本的時候出現以下問題 問題1描述: diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 解決辦法: 進入到工程目錄從新pod install一下 上面步驟進行過以後運行工程可能會有下面錯誤,那是由於當前用戶的權限所致。 問題2描述: /Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/Pods-resources.sh: line 5: /Users/wmm-mac/Documents/Program-SVN/Versions/code/iPhone/GeneralProject/Pods/resources-to-copy-GeneralProject.txt: Permission denied Pod沒有權限: 若是沒有權限,可執行下面代碼 sudo chmod 777 Pods