Cocoapods: Remove a pod causes Linker Error

Created on 14 Feb 2014  路  15Comments  路  Source: CocoaPods/CocoaPods

Removing Lookback pod caused this:

ld: framework not found LookBack
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Not sure if I'm doing something wrong or there is something wrong with the pod.

Most helpful comment

I've came across this before myself. Temporary fix: rm -fr Pods && pod install.

All 15 comments

did you do a pod install after?

I did

The same happens if I remove reveal and do a pod install (with the reveal linker).
Dunno what I might be doing wrong

Did you add or remove a target? I.e.

Went from

target "Your_Target" do
    # pod ... add some pods
end

to simply

# pod ... add some pods

Or vice versa? Think I may be seeing a bug here... looking to see if dup...

Hello @JRG-Developer ,
no, just removed the lines in podfile.

The linker flags remain there (I remove them manually)

where are those flags in Xcode so I can manually remove them. I am having the same problem. no changes other than I removed a dependency. After a pod install things were messed up.

This has really screwed my project and I have no idea how to fix it. Bringing up another point can I 'reset' all the stuff pods did. I.E. start over without having to create a new project? I have removed Pods dir and xcworkspace and Podfile.lock but that did not help. I cannot even get back to regular xcode, when I do that its look for Pod specific stuff.

@newmanw you have to remove the linkers.
This means that in "Other Linker Flags" in you target "Build Settings", will have a list of linkers related to your pods.

Search for the pods that you want to delete and for each one you have to delete 2 things. First the linker with the pod name, and after, the "-framework" linker just below it.
So 2 linkers for each pod.

That fixed things for me

I've came across this before myself. Temporary fix: rm -fr Pods && pod install.

@confidenceJuice closed with reason "original problem is not reproduceable as of at least 0.30. a new issue raised in the comments (https://github.com/CocoaPods/CocoaPods/issues/1823#issuecomment-35434174) has been created see #1954"

This just happened to me as well with cocoapods 1.1.1.
I had to manually remove the linker flags from my target.
I just removed the line from the Pod file and did pod install. Nothing more, nothing less.

This is happening to me wiht cocoapods 1.2.0 and I'm not finding any way out.

ld: framework not found LookBack
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've tried manually removing the flags from my pod file and doing pod install but it's not working

To make sure which pod is giving you trouble you need to:

  1. Right click the message"Linker command failed with exit code 1"
  2. Choose the option "Reveal in Log" ,
  3. A mensage in the right window will appear showing the framework causing you trouble
  4. Delete -framework and FrameworkName in "Other Linker Flags" from your project target's "Build Settings"

copia de captura de tela 2017-07-27 as 23 37 22

copia de captura de tela 2017-07-27 as 23 39 29

build success

Just got bit by this after removing PaymillSDK. Cocoapods does not seem to update the "Other Linker Flags" setting?

@newmanw you have to remove the linkers.
This means that in "Other Linker Flags" in you target "Build Settings", will have a list of linkers related to your pods.

Search for the pods that you want to delete and for each one you have to delete 2 things. First the linker with the pod name, and after, the "-framework" linker just below it.
So 2 linkers for each pod.

That fixed things for me

i would consider not doing this operation by cocoapods is there fault only. I tried all the answers everywhere on stackoverflow. This only solved my case.. :)
Thanks!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lzwjava picture lzwjava  路  3Comments

k06a picture k06a  路  3Comments

marzapower picture marzapower  路  3Comments

gerchicov-bp picture gerchicov-bp  路  3Comments

pronebird picture pronebird  路  3Comments