美文网首页
iOS "The sandbox is not in

iOS "The sandbox is not in

作者: 747071ac3c1d | 来源:发表于2016-08-30 09:23 被阅读39次

如果你从git上下载下来,运行一下报这样的错误

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.

这就需要你从新把第三方的东东用cocopods重新安转一下

1.首先把你的终端打开 输入cd 你的文件路径  (直接把文件夹拖进去就OK)

eg:cd /Users/apple/Desktop/要研究的/PNChart-master (这是我当时处理PNChart的)

2.在终端上输入ls  (会输出你文件夹里面的文件)

eg:CocoaPods-version.yml PNChart.podspec PNChartTests

Default-568h@2x.png PNChartDemo Podfile

LICENSE PNChartDemo.xcodeproj Podfile.lock

PNChart PNChartDemo.xcworkspace README.md  (这个是PNChart里面的文件)

3.把xcworkspace这个文件删掉

eg:rm -rf PNChartDemo.xcworkspace

4.最后在 pod install 一下就可以了  你的工程记得clean一下 在运行 应该就没问题了

相关文章

网友评论

      本文标题: iOS "The sandbox is not in

      本文链接:https://www.haomeiwen.com/subject/phbvsttx.html