從網(wǎng)上下載的demo使用cocoa pods構(gòu)建工程可能會出現(xiàn)一下錯誤:
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.
解決方法:
首先關(guān)閉xcode, 然后pod install。
如果不行就先刪除xxx.xcworkspace 对扶、Podfile.lock和、Pods文件夾 以及~/Library/Developer/Xcode/DerivedData路徑下對應(yīng)工程的文件夾
然后打開終端cd XXX(XXX是你的工程文件夾路徑)汗洒,然后 pod install