2016-12-03 127 views
0

我现在在iOS应用程序中使用CocoaPods一年。 昨天我试着更新pod update我的项目中包含的所有豆荚。CocoaPods更新目标覆盖`FRAMEWORK_SEARCH_PATHS`

但是使用这个命令我一直都想与这下面的错误时:

[!] The `XXXTests [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-XXXTests/Pods-XXXTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

[!] The `XXX [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-XXXTests/Pods-XXXTests.release.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

根据this answer我已经改变了我FRAMEWORK_SEARCH_PATHS到$(inherited)但它不会影响任何东西。 enter image description here

任何人都可以帮助我解决这个问题吗?

编辑1:这是我荚文件的内容:

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'xxx' do 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for xxx 
    pod 'Firebase' 
    pod 'Firebase/Core' 
    pod 'Firebase/Crash' 
    pod 'Firebase/RemoteConfig' 


    target 'xxxTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

回答

1
# Uncomment this line to define a global platform for your project 
# platform :ios, '9.0' 

target 'xxx' do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 
    pod 'Firebase' 
    pod 'Firebase/Core' 
    pod 'Firebase/Crash' 
    pod 'Firebase/RemoteConfig' 
    # Pods for xxx 

    target 'xxxTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 
+0

编辑乌尔荚文件,并替换它我更新的答案pod文件。保存textedit文件,关闭,火推荐吊舱安装 –

+0

非常感谢! :)不过我也不得不把'$(继承)'在FRAMEWORK_SEARCH_PATHS我的目标xxx和xxxTests – Mojo

+0

没有问题,只是删除一个, –

0

enter image description here第1步: - 从你的项目不荚文件只删除的CocoaPods。

第2步: - 更新$(继承)在你的项目框架搜索路径。

第3步: - 再次推荐pod安装。

这里是荚文件

取消注释该行定义一个全球平台,为您的项目

平台:IOS,“9.0”

目标“DemoError”做 #评论这行,如果你'不使用Swift并且不想使用动态框架 use_frameworks! 荚 '火力地堡' 荚 '火力地堡/核心' 荚 '火力地堡/撞车' 吊舱DemoError

目标 'DemoErrorTests' 做 继承 '火力地堡/ RemoteConfig' #豆荚! :search_paths测试 结束

+0

非常感谢您的回答 #豆荚,但它不会改变任何东西。我删除了'Pods'文件夹和'Podfile.lock',但是再次输入'pod install'时会再次出现此错误。 – Mojo

+0

可以分享你的荚文件,也可以删除工作区 –

+0

我删除了除荚文件以外的所有内容,但它只影响一件事。起初,我得到了两次错误,现在只有一次。但它仍然出现。我已将我的pod文件添加到该问题;) – Mojo