Cocoapods and Xcode Search Paths Bug

preview_player
Показать описание
## PROBLEM: You run `pod install` and get the following error
```
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.
Рекомендации по теме
Комментарии
Автор

FWIW what's happening there is that the bold font is denoting that you have a custom setting for it, in your case, the custom setting was initially just an empty list. So when you delete that setting with backspace, it's going back to the default setting, which is $(inherited) + some other headers.
I totally get where you're coming from, though, that error message saying to delete the custom setting is very ambiguous if you're not used to how Xcode manages settings.
I'm glad you made this video, I'm sure it'll help a ton of other people running into the same issue

AndresBoedo
Автор

saved me 1 hour of copy pasting, wow thanks a lot

jonasgroendahl
Автор

hey thanks for this! what is the clipboard tool dropdown tool you used here at 0:42?

jhinjher
Автор

Thank you; I'm not sure if this is gonna work (still waiting for everything to finish re-installing), but god this is confusing.

WendyZhang-stde
Автор

I hope this is the solution for what I’m facing!

AtesotFlavor