XCode 6 CocoaPods错误:目标覆盖“OTHER_LDFLAGS”版本设置

我刚刚开始使用CocoaPods,并从terminal(我的项目被称为babyMilestones,我试图使用CocoaPods的ShipLib框架)pod安装时出现以下错误。 :

babyMilestones [Release]目标覆盖在Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the定义的FRAMEWORK_SEARCH_PATHS设置Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inheritance)标志,或者 – 从目标中删除构build设置。

我收到此错误的标题searchpath和框架searchpath。

当我尝试构build我的项目时,我在#import行上得到一个错误,说无法findShipLib / ShipLib.h文件。 在我的项目导航器中,我的Pods项目显示正常,并且ShipLib框架可见。

我从来没有明确地设置任何这些searchpath,我只是让XCode 6做到这一点。 我发现这个答案: 目标…覆盖`Pods / Pods.xcconfig中定义的`OTHER_LDFLAGS`构build设置我已经尝试了以下内容:

  1. 删除了“生成设置”中的所有框架searchpath。 这并没有解决这个问题 在这里输入图像说明

  2. 然后我将$(inheritance)添加到框架searchpath。 我做了清洁,然后build立。 这给了以下types的新错误:

    ld:warning:找不到选项'-L / Users / billpaystation / Documents / iOS / babyMilestones / babyMilestones / Pods / build / Debug-iphoneos'的目录ld:warning:找不到选项'-F'的目录未定义的体系结构符号i386:“_OBJC_CLASS _ $ _ ActionSheetDatePicker”,引用自:EditItemViewController.o中的objc-class-ref“_OBJC_CLASS _ $ _ SYSincerelyController”,引用来自:EditItemViewController.o中的objc-class-ref ld:符号(s)not found for architecture i386铛:错误:链接器命令失败,退出代码1(使用-v查看调用)

操作图表select器和Sincerely控制器是我试图添加与豆荚的库。

  1. 我注意到libPods.a在我的文件检查器中的Frameworks下是红色的。 所以我去了计划 – >编辑计划 – >并添加到生成豆荚。 在这里输入图像说明 我真的不明白整个目标/构build设置,我可能已经做了这么多不同的事情变得更糟。 任何帮助,将不胜感激!

您应该将$(inheritance)添加到框架searchpath。 对于新的错误,你应该去:

TargetSettings-> Build Phases-> Compile Sources – >(+)ActionSheetDatePicker.m和SYSincerelyController.m类,然后编译并运行。

这是我昨天的问题和解决scheme。

目标覆盖FRAMEWORK_SEARCH_PATHS构build设置

希望这可以帮助。

在我的情况下,这不是一个Xcode的问题,再加上我认为手工修复是一个坏主意。 我试图使用不同(早期版本)的Cocoapods,它工作得很好!

gem install cocoapods -v 0.33.1