工程使用CocoaPods管理第三方库,在新的目录update版本的时候出现以下问题spa
问题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一下code
具体操做步骤(终端):it
第一步:$ cd 将本身工程的文件夹直接拖进来 而后点击enterio
第二步:$ rm -rf MyProject.xcworkspace(这里的MyProject换成本身的工程名字)class
第三步:$ rm -rf Podsdate
第四步:$ rm Podfile.lockfile
第五步:$ rm -rf /Users/~/Library/Developer/Xcode/DerivedData/MyProject_******(这里的MyProject换成本身的工程名字)终端
第六步: $ pod install --verbose --no-repo-update(正常至关因而pod install)这样比较快点.error
最后一步的时候实际上是在将项目中用到的第三方都导入进来,因此须要一个一个的导入,会比较消耗时间.终端中往上翻看能够查看具体包括什么第三方,这样的话等待都完了以后会自动生成一个xcworkspace文件,双击进去以后,先clean一下,而后运行便可.项目