objective-c - 项目构建中的 CocoaPods 错误

我无法构建使用 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

https://stackoverflow.com/questions/17072396/

相关文章:

objective-c - 是否可以刷新 UITableView 中的单个 UITableViewC

ios - 具有 UITapGestureRecognizer 的 View 中的 UIButton

objective-c - 为什么 Objective-C 委托(delegate)通常被赋予属性分

ios - 在 Objective-C 中检查空字符串的正确方法是什么?

ios - Storyboard 中的 Modal 和 Push segue 有什么区别?

objective-c - 最佳实践? - 数组/字典作为核心数据实体属性

objective-c - Objective-C 中的方法语法

ios - UIImageView 上的 UIGestureRecognizer

ios - 在 UITableViewCell 中有一个 UITextField

objective-c - 如何等待异步调度的 block 完成?