Skip to content
0:00 / 0:00

#cocoapods#xcode#ios

Cocoapods and Xcode Search Paths Bug

FastNotion

229 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

10K views5 years ago1 recommendation

Mobile developmentTools and practiceiOS and SwiftUIBuild systems and packaging

A quick walkthrough on resolving the CocoaPods target overrides LIBRARY_SEARCH_PATHS build setting error in Xcode.

## 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. ``` - You try deleting all of the rows in Library Search Paths and still get the error. - You try adding `$(inherited)` as the first item. Cocoapods stops complaining, but you no longer see all of the search paths that were originally imported. ## SOLUTION: 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. I hope it helps someone other than me.

Why it's here

1 person recommends this

What people say. Recommended as a quick video guide to resolve CocoaPods library search path override warnings in Xcode.

Joeon Stack Overflow • Recommends

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

Watch the 2 min video here: link to this video Go to Library Search Paths in XCode's Build Settings for your target 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. 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.