ViniciusPV ViniciusPV - 1 year ago 72
iOS Question

Error "library not found for"

I'm having a error after I put in my app a admob. yesterday the app worked fine but today it did not worked anymore .. the error is as follows:

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

how to fix it ? thanks !!

Answer Source

Sometimes you just remove the reference of the library and add reference again.

Apart from adding the Google Mobile Ads SDK and other libraries again from scratch, I would recommend you checking the Library Search Paths. There are instances when you copy or duplicate a target, Xcode decides that it needs to escape any double quotes " with a '\'. Make sure you remove all the \’s - it should look like this -

enter image description here

I was able to duplicate the error, by doing prefixing my path with multiple '\'.