在我的项目的基础上执行pod安装后,我得到以下错误:
CocoaPods没有设置项目的基本配置,因为您的项目已经有一个自定义配置集。为了实现CocoaPods集成,请将目标BluePlaquesLondonFramework的基本配置设置为Pods/ target Support Files/Pods/Pods.debug.xcconfig,或者在构建配置中包含Pods/ target Support Files/Pods/Pods.debug.xcconfig。
这可能听起来像是一个愚蠢的问题,但是我如何为目标设置基本配置呢?
https://github.com/seanoshea/BluePlaquesLondon/blob/ios8/Podfile是导致此问题的Podfile。
如果你想知道这个项目是什么样子的话,iOS 8分支上的http://github.com/seanoshea/BluePlaquesLondon就是这个问题中的Podfile。
只需遵循Android Studio的说明。
这是错误输出:
"[!] 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 `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`)."
在android studio IDE中,进入IOS文件夹/Flutter,打开文件Release.xconfig
过了这条线:
Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
删除podfile。锁定并尝试在Xcode中重建。为我工作。