我无法构建使用 CocoaPods 的项目。我收到以下错误:
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
但这没有帮助。
似乎没有设置PODS_ROOT
。
Pod 文件:
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
:
rm -rf MyProject.xcworkspace
pod install
关于objective-c - 项目构建中的 CocoaPods 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17072396/