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


当前回答

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

[!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配置文件中提到的 错误消息。

其他回答

我也遇到了同样的问题,但是在Xcode 6.1.1中-为我修复它的是将两个pod相关目标的配置文件设置更改为None,然后再次运行pod install。

通过选择项目(而不是目标),然后选择Info选项卡,可以找到配置文件设置。

如果您正在使用自定义配置,您可以按照警告中的建议,将Pod配置包含在配置文件中

     #include "Pods/Target Support Files/Pods-YYY/Pods-YYYY.develop-archive.xcconfig"

这将不会停止警告,但将允许您使用您的私人配置(在CocoaPods项目的警告上有一个开放的错误) https://github.com/CocoaPods/CocoaPods/issues/2633

我在安装吊舱时也犯了同样的错误。我尝试了所有方法(重新安装pod,更新所有宝石等),并找到了适合我的解决方法。因为改变目标的名字,所以出现了问题。在这种情况下,解决方案很简单:

单击“产品->方案->管理方案…” 单击列表上的目标,并在窗口底部用“-”符号删除它。 点击“+”将目标添加回列表。选择正确的目标和名称。

毕竟,一切都应该正常工作。

我错了:

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock.

我只是检查了我安装吊舱的路径,并纠正了它,重新安装,它只是工作。

确保在.xcodeproj或.xcworkspace(如果已经存在的话)存在的位置前面给出路径。

这是我在运行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 酒吧得到 圆荚体安装