项目构建中的 CocoaPods 错误 [英] CocoaPods Errors on Project Build
本文介绍了项目构建中的 CocoaPods 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法构建使用 CocoaPods 的项目.我收到以下错误:
I'm unable to build a project that uses CocoaPods. I get the following errors:
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
似乎工作正常并将 Pods
项目添加到我的工作区.我试过 $ pod update
但这没有帮助.
$ pod install
seems to work fine and adds a Pods
Project to my Workspace. I've tried $ pod update
but this doesn't help.
似乎没有设置PODS_ROOT
.
Podfile:
platform :ios, '6.0'
workspace 'Example.xcworkspace'
xcodeproj 'example/Example.xcodeproj'
pod 'TestFlightSDK', '~> 1.3.0-beta.5'
pod 'TestFlightLogger', '~> 0.0.2'
pod 'CocoaLumberjack', '~> 1.6.2'
pod 'Reachability', '~> 3.1.0'
pod 'SBJson', '~> 3.2'
pod 'MKMapViewZoom', '~> 1.0.0'
推荐答案
我在对 Podfile 进行重大更改时遇到了类似的问题.我的解决方案是删除工作区文件并再次运行 pod install
:
I had a similar problem when I did major changes to my Podfile. My solution was to remove the workspace file and run pod install
again:
rm -rf MyProject.xcworkspace
pod install
这篇关于项目构建中的 CocoaPods 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文