6

I am having very bad problems with CocoaPod. I had to update Cocoa pods for Yosemite. I then ran pod update and got the following warning message:

[!] The `app [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

And

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

EDIT:

I followed @mef link but did not know where to place the code?

Rohit suvagiya
  • 1,005
  • 2
  • 12
  • 40
DevC
  • 6,982
  • 9
  • 45
  • 80
  • _step 1.:_ eliminating cocoapods; _step 2.:_ using GIT (or other reliable solution); _step 3.:_ you don't need to thank me at all, just enjoy. – holex Dec 03 '14 at 15:19
  • @holex how to remove cocoapods? – DevC Dec 03 '14 at 15:21
  • I don't know how you have added it to your project, honestly... – holex Dec 03 '14 at 15:22
  • 2
    @holex if I could downvote a comment, I would. You do realize cocoapods is basically a wrapper around git, don't you? Except that it also resolves transitive dependencies and so much more... – Leo Dec 03 '14 at 15:23
  • @Mef, the cocoapod is a highly anti-pattern developer tool. we are here helping on poor OP in long term, and eliminate cocoapod is the only good solution in long term. no, further debate necessary. – holex Dec 03 '14 at 15:25
  • possible duplicate of [The target ... overrides the \`OTHER\_LDFLAGS\` build setting defined in \`Pods/Pods.xcconfig](http://stackoverflow.com/questions/18376416/the-target-overrides-the-other-ldflags-build-setting-defined-in-pods-pods) – Leo Dec 03 '14 at 15:26
  • @Mef Tried that example, unfortunately it didnt work – DevC Dec 03 '14 at 15:27
  • 1
    @DevC Back up your project before doing this, but https://github.com/kylef/cocoapods-deintegrate can remove cocoapods entirely from your project. – jlw Dec 03 '14 at 16:19
  • @jlw that looks to be a very handy tool. Will it remove everything to do with Cocoapods? scripts and dependencies to Cocoapods. Might be easier to remove Cocoapods entirely and just add the source code from third party libraries. Cocoa Pods is giving me a headache at this stage. – DevC Dec 03 '14 at 20:01
  • @holex good luck with that – pronebird Dec 04 '14 at 02:24

1 Answers1

14

Based on Mefs link I was able to get it working. If anyone is wondering where to put $(inherited), put it in the Other linker Flags section of your project.

enter image description here

Preetam Jadakar
  • 4,479
  • 2
  • 28
  • 58
DevC
  • 6,982
  • 9
  • 45
  • 80