今天在封装自己的消息推送SDK的时候,pod install 的时候,突然报这个错误,解决方式如下:
$ pod install
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.1.0)
Using CocoaAsyncSocket (7.6.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
[!] The Podfile contains framework or static library targets, for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
[!] 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 `NewsPushClientSDK` to `Pods/Target Support Files/Pods-NewsPushClientSDK/Pods-NewsPushClientSDK.debug.xcconfig` or include the `Pods/Target Support Files/Pods-NewsPushClientSDK/Pods-NewsPushClientSDK.debug.xcconfig` in your build configuration (`../Pods/Target Support Files/Pods-PushClientSDK/Pods-NewsPushClientSDK.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 `NewsPushClientSDK` to `Pods/Target Support Files/Pods-NewsPushClientSDK/Pods-NewsPushClientSDK.release.xcconfig` or include the `Pods/Target Support Files/Pods-NewsPushClientSDK/Pods-NewsPushClientSDK.release.xcconfig` in your build configuration (`../Pods/Target Support Files/Pods-PushClientSDK/Pods-NewsPushClientSDK.release.xcconfig`).
解决如下:在项目里把下面的
Configuration
都改为None
,然后在pod install