Cocos发布到iOS原生遇到的问题

1.错误:
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的过程中有以下警告:

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `hello_world-desktop` to `Target Support Files/Pods-hello_world-desktop/Pods-hello_world-desktop.debug.xcconfig` or include the `Target Support Files/Pods-hello_world-desktop/Pods-hello_world-desktop.debug.xcconfig` in your build configuration (`mac/UserConfigMac.debug.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `hello_world-desktop` to `Target Support Files/Pods-hello_world-desktop/Pods-hello_world-desktop.release.xcconfig` or include the `Target Support Files/Pods-hello_world-desktop/Pods-hello_world-desktop.release.xcconfig` in your build configuration (`mac/UserConfigMac.release.xcconfig`).

分别对应debug和release模式,在目录中找到UserConfigIOS.debug.xcconfig和UserConfigIOS.release.xcconfig文件分别按照警告提示进行修改:
UserConfigIOS.debug.xcconfig:

#include "/Applications/CocosCreator/Creator/2.4.3/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/ios/CCModuleConfigIOS.debug.xcconfig"
#include "../Pods/Target Support Files/Pods-hello_world-mobile/Pods-hello_world-mobile.debug.xcconfig"

UserConfigIOS.release.xcconfig:

#include "/Applications/CocosCreator/Creator/2.4.3/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/ios/CCModuleConfigIOS.release.xcconfig"
#include "../Pods/Target Support Files/Pods-hello_world-mobile/Pods-hello_world-mobile.release.xcconfig"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容