Joe
Joe

Reputation: 373

Cocoapods - target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files

PROBLEM:

You run pod install and get the following error

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

Upvotes: 6

Views: 8279

Answers (1)

Joe
Joe

Reputation: 373

Watch the 2 min video here: https://youtu.be/XvaqW0lQL18

  1. Go to Library Search Paths in XCode's Build Settings for your target

  2. Double click, select any entries in there and click the '-' button to delete them.

    You'll notice that the field is now empty BUT the "Library Search Paths" is now bold.

  3. Select the bold "Library Search Paths" row and hit Backspace

You should see all of the original search paths magically reappear.

I can't believe how unintuitive this is.

Upvotes: 15

Related Questions