Cocos工程使用CocoaPod报错

Cocos打出的来的Xcode工程安装pod的时候会有一堆警告:

[!] Automatically assigning platform macOS with version '10.9' on target ColorUp-desktop because no plat form was specified. Please specify a platform for this target in your Podfile. See 'https://guides.cocoapods
.org/syntax/podfile.html#platform [!] Automatically assigning platform iOS with version '8.0 on target ColorUp-mobile because no platform was specified. Please specify a platform for this target in your Podfile. See "https://guides.cocoapods.org
/syntax/podfile.html#platform [!] CocoaPods did not set the base configuration of your project because your project already has a custom c onfig set. In order for CocoaPods integration to work at all, please either set the base configurations of t he target 'ColorUp-desktop to 'Target Support Files/Pods-ColorUp-desktop/Pods-ColorUp-desktop.debug.xcconfi g or include the 'Target Support Files/Pods-ColorUp-desktop/Pods-ColorUp-desktop.debug.xcconfigin your bu
ild configuration ('mac/UserConfigMac.debug xcconfig"). [!] CocoaPods did not set the base configuration of your project because your project already has a custom c onfig set. In order for CocoaPods integration to work at all, please either set the base configurations of t he target ColorUp-desktop to 'Target Support Files/Pods-ColorUp-desktop/Pods-ColorUp-desktop.release.xccon fig or include the 'Target Support Files/Pods-ColorUp-desktop/Pods-ColorUp-desktop.release.xcconfig^inyou
r build configuration ('mac/UserConfigMac.release.xcconfig"). [!] CocoaPods did not set the base configuration of your project because your project already has a custom c onfig set. In order for CocoaPods integration to work at all, please either set the base configurations of t he target ColorUp-mobile to 'Target Support Files/Pods-ColorUp-mobile/Pods-ColorUp-mobile.debug.xcconfig or include the "Target Support Files/Pods-ColorUp-mobile/Pods-ColorUp-mobile.debug.xcconfig'inyour build c
onfiguration ('ios/UserConfigIOS.debug.xcconfig"). [!] CocoaPods did not set the base configuration of your project because your project already has a custom c onfig set. In order for CocoaPods integration to work at all, please either set the base configurations of t c he target 'ColorUp-mobile to 'Target Support Files/Pods-ColorUp-mobile/Pods-ColorUp-mobile.release.xcconfig
or include the
'Target Support Files/Pods-ColorUp-mobile/Pods-ColorUp-mobile.release.xcconfigin your bui
Id configuration (' ios/UserConfigIOS.release.xcconfig").

解决方案:
把pod对应的.xcconfig添加到UserConfigiOS的.xcconfig里,debug和release都要

#include "../Pods/Target Support Files/Pods-GameCocosDemo-mobile/Pods-GameCocosDemo-mobile.debug.xcconfig"
#include "../Pods/Target Support Files/Pods-GameCocosDemo-mobile/Pods-GameCocosDemo-mobile.release.xcconfig"
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容