在我的项目的基础上执行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。


当前回答

我能够通过以下方法在XCode 6上构建这个问题所涉及的项目:

从项目导航器中选择项目 选择项目而不是目标 转到信息选项卡 从组合框中选择Pods.(调试/释放)配置文件。

希望这能帮助到一些人。

其他回答

进入XCode,打开你的项目设置,在信息选项卡下,你会看到“配置”,在这里你可以设置调试和发布的配置文件。显然,您已经将这些设置为一些自定义配置,CocoaPods希望/需要您使用Pods配置。

如果您在现有项目中添加了自定义构建配置,Cocoapods将对此提出抱怨。

Cocoapods会自动在Pods/Target Support files /<build_target>目录下创建xcconfig文件,命名模式为Pods-<build_target>.<build_config>.xcconfig。

只要确保在Xcode中手动将这些文件添加到你的项目中(在Pods目录下,但不是在Pods项目中!)一旦包含了这些文件,在Xcode中选择你的项目,进入“信息”选项卡,展开你的自定义配置。为自定义配置下的每个目标选择适当的xcconfig文件。

这是我在运行pod安装或pod更新后得到的消息:

[!] 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.debug-staging.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.debug-staging.xcconfig` in your build configuration (`Flutter/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 `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.release-staging.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.release-staging.xcconfig` in your build configuration (`Flutter/Release.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 `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile-staging.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile-staging.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

下面是我解决这个问题的方法:

将方案添加到项目“Runner”下的Podfile

project 'Runner', {
  'Debug' => :debug,
  'Debug-staging' => :debug,
  'Profile' => :release,
  'Profile-staging' => :release,
  'Release' => :release,
  'Release-staging' => :release,
}

进入ios/颤振/调试。Xcconfig和include

#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-staging.xcconfig"

进入ios/Flutter/Release。Xcconfig和include

#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-staging.xcconfig"
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile-staging.xcconfig"

颤振清洁 删除podfile.lock 酒吧得到 圆荚体安装

我能够通过以下方法在XCode 6上构建这个问题所涉及的项目:

从项目导航器中选择项目 选择项目而不是目标 转到信息选项卡 从组合框中选择Pods.(调试/释放)配置文件。

希望这能帮助到一些人。

在仔细阅读错误消息后,我修复了我的问题:

[!CocoaPods没有设置项目的基本配置 因为您的项目已经有一个自定义配置集。为了 CocoaPods集成工作的全部,请任意设置基础 目标Runner的配置到目标支持文件/ pod -Runner/Pods-Runner.profile。xcconfig或包含目标支持文件/Pods-Runner/Pods-Runner.profile。构建中的Xcconfig 配置(颤振/ Release.xcconfig)。

解决方案

打开Xcode,将Runner Info Base Configurations更改为 Pods-Runner.profile.xconfig有关。 Xcode辞职 终端:从ios项目文件夹运行pod deintegrate 验证pod已移除 项目已经解体。项目中没有CocoaPods的痕迹。 注意:引用Pods项目的工作区仍然存在。 终端:在ios项目文件夹中运行pod install

(来自原文- BAD)

(到此GOOD设置)

笔记

我还没能用第二种方法解决这个问题 建议将xconfig文件包含在 颤振/释放。Xcconfig配置文件中提到的 错误消息。