Cocos Creator 2.2 iOS CocoaPods

Cocos Creator 2.2 打包出来的 iOS工程,我想用CocoaPods管理第三方类库
但pod install 后打开工程 build 不通过

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.

请问这是缺失哪方面的的配置吗?:slightly_smiling:

请问 这个问题你解决了吗?

我遇到了跟你一样的问题,百度出来的解决办法我全部试过一次。都没有效果

把pod对应的.xcconfig添加到Cocos Creator的.xcconfig里

#include “/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/ios/CCModuleConfigIOS.debug.xcconfig”

// 添加这一行
#include “…/Pods/Target Support Files/Pods-ColorUp-mobile/Pods-ColorUp-mobile.debug.xcconfig”

3赞

我也遇到过这个问题,我的解决办法时:选中项目PROJECT -> Info -> Configurations中Debug跟Release选项中都改成含有pod的选项

然后clean+build

有效,感谢