使用cocoapods
集成的 第三方库报错
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
查询网上说的解决方案如下: (都试了仍然报错, 后面给出我的解决方案)
$ rm -rf XXProject.xcworkspace
$ rm -rf Podfile.lock
$ pod setup
$ pod install
- 注:
XXProject
是工程项目名称, 需要替换
经过上面的处理, 并没有解决我的问题, 我的解决方案如下:
- 由原来的
build-debug, build-release
设置成Pods-mobile.debug
和Pods-mobile.release
image.png
参考链接: 这里