小编典典

项目构建中的 CocoaPods 错误

all

我无法构建使用 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没有设置。

播客文件:

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'

阅读 142

收藏
2022-08-08

共1个答案

小编典典

当我对 Podfile 进行重大更改时,我遇到了类似的问题。我的解决方案是删除工作区文件并pod install再次运行:

rm -rf MyProject.xcworkspace
pod install
2022-08-08