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"