美文网首页
Cocos发布到iOS原生遇到的问题

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

作者: iOS苦逼开发 | 来源:发表于2021-08-09 16:01 被阅读0次
    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"
    

    相关文章

      网友评论

          本文标题:Cocos发布到iOS原生遇到的问题

          本文链接:https://www.haomeiwen.com/subject/mavzvltx.html