ld: library not found for -lGoogleAdMobAds

2019-01-26 23:26发布

问题:

Trying to add Google's MobAds to my app.

I've followed every step but at the end I have a single fatal error.

Here is a picture.

Any suggestions on how to fix it?

Thank you.

回答1:

Go to Project Navigator and find libGoogleAdMobAds.a. Just select it and on right side in Target Membership you would get your targets. Just deselect targets which are selected and again select them.

It may help you.



回答2:

Check your library search path. Most of the time this error occurs because of this reason. You can find library search path under build setting.

EDIT: Thats a real good idea.



回答3:

Depends on version you using. I once stucked for using V2 of API for ARM7 Architecture.