Mojo
Mojo

Reputation: 497

CocoaPods update target overrides the `FRAMEWORK_SEARCH_PATHS`

I'm useing CocoaPods for one year now within my iOS app. Yesterday I tried to update pod update all the pods included in my project.

But when using this command I'm always getting this following error:

[!] 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.

According to this answer I have changed my FRAMEWORK_SEARCH_PATHS to $(inherited) but it does not effect anything. enter image description here

Can anyone help me dealing with this problem?

EDIT 1: This is the content of my pod file:

    # 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

Upvotes: 1

Views: 2559

Answers (2)

Amar Bhanwaria
Amar Bhanwaria

Reputation: 62

# 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

Upvotes: 2

Amar Bhanwaria
Amar Bhanwaria

Reputation: 62

enter image description herestep 1 :- delete only CocoaPods from your project not pod file.

step 2: - update $(inherited) at ur project Framework search path.

step 3: - fire commend again pod install.

here is pod file

Uncomment this line to define a global platform for your project

platform :ios, '9.0'

target 'DemoError' 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 DemoError

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

end

Upvotes: -1

Related Questions