2

I have a currently working cocoapods, however whenever I want to add frameworks and run pod install I get this warning in the terminal and the project does not compile.

enter image description here

enter image description here

I have followed what it is suggesting, I already had the inherited flag in my build settings, and I tried deleting the EMBEDDED_CONTENT_CONTAINS_SWIFT from target build settings.

I have to run a git reset --hard to go back to my working cocoapods after removing the framework I wanted to add.

Edit: Added my podfile

enter image description here

kareem
  • 903
  • 1
  • 14
  • 36
  • do you have use_frameworks! in your pod file? – Johnykutty Jan 22 '16 at 07:39
  • @Johnykutty yes! U will also update my post with my pod file – kareem Jan 22 '16 at 07:47
  • i think that you can find an answer here [http://stackoverflow.com/questions/26439856/xcode-6-cocoapods-error-target-overrides-the-other-ldflags-build-setting](http://stackoverflow.com/questions/26439856/xcode-6-cocoapods-error-target-overrides-the-other-ldflags-build-setting) – BEN MESSAOUD Mahmoud Jan 22 '16 at 09:59
  • already tried this, but unfortunately parts of the answer doesn't apply to this version of cocoapods and my project is completely in swift – kareem Jan 23 '16 at 04:58
  • desperate for help here folks – kareem Jan 23 '16 at 10:34

1 Answers1

0

Okay, so after a lot of pain and suffering, I found the solution.

We cannot have frameworks in cocoapods use other frameworks in your podfile. I was using Atlas but added custom implementation that included MBProgressHUD which was the issue. I cannot import MBProgressHUD into Atlas because thats what was causing the issues above.

Not sure why but that was all there was to it.

kareem
  • 903
  • 1
  • 14
  • 36