CocoaPods更新目标会覆盖`FRAMEWORK_SEARCH_PATHS`

时间:2016-12-03 08:00:19

标签: swift cocoapods

我现在在我的iOS应用程序中使用CocoaPods一年了。 昨天我尝试更新pod update项目中包含的所有pod。

但是当使用此命令时,我总是会收到以下错误:

[!] 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:这是我的pod文件的内容:

    # 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 个答案:

答案 0 :(得分: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