Podfiles似乎在Xcode中构建问题

时间:2017-12-27 06:12:14

标签: swift xcode cocoapods project podfile

我目前正在Xcode内使用Cocoapods作为插件处理项目,其中包含一些插件,例如GoogleMessagingService。但是,每次编译这个项目时我都会收到这个错误,只有当我从项目中删除Cocoapods时它才会消失。

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/matponting/Library/Developer/Xcode/DerivedData/-----bpdgcivsmcggtlcgfgywekonicxg/Build/Intermediates/----.build/Debug-iphoneos/----.build/Script-5DA7142BEDB6A002149910F5.sh
cd /Users/matponting/Desktop/OriginalCordova/-----Ionic/platforms/ios
/bin/sh -c /Users/matponting/Library/Developer/Xcode/DerivedData/-----bpdgcivsmcggtlcgfgywekonicxg/Build/Intermediates/----.build/Debug-iphoneos/----.build/Script-5DA7142BEDB6A002149910F5.sh    

注意:由于信心原因,我在这里隐瞒了一些命名,因此有些'----'是名字。

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.   

只有在项目中使用Cocoapods时才会出现这些错误,并且在删除它时会有不同的结果可以解决,但我需要Cocoapods来制作我目前使用的内容工作

现在,我已经研究过这些信息,并使用不同版本的Cocoapods遇到了多个修复,例如清理项目和重新编译。但是,我尝试了这些,我仍然有同样的错误。

我有什么遗漏吗?

编辑:我也试过使用'pod update',但没有成功。

1 个答案:

答案 0 :(得分:0)

我认为您的项目缺少Podfile.lock文件和pods文件夹。

所以删除你的工作区并再次尝试安装pod。