Problems Building App After Reimplementing AdMob via CocoaPods

932 views
Skip to first unread message

Jon Kantner

unread,
May 24, 2020, 1:42:23 PM5/24/20
to Google Mobile Ads SDK Developers

I just re-added AdMob (v7.59) to my app using CocoaPods. When I build the project, Xcode throws these errors at me, and I have no clue how to fix them:


ld: warning: directory not found for option '-F/Users/jon/Library/Developer/Xcode/DerivedData/MyApp-bvejzvqdyqfnzmfhecuboypxcqlx/Build/Products/Debug-iphonesimulator/GoogleUtilities'

ld: warning: directory not found for option '-F/Users/jon/Library/Developer/Xcode/DerivedData/MyApp-bvejzvqdyqfnzmfhecuboypxcqlx/Build/Products/Debug-iphonesimulator/PromisesObjC'

ld: warning: directory not found for option '-F/Users/jon/Library/Developer/Xcode/DerivedData/MyApp-bvejzvqdyqfnzmfhecuboypxcqlx/Build/Products/Debug-iphonesimulator/nanopb'

ld: framework not found FBLPromises

clang: error: linker command failed with exit code 1 (use -v to see invocation)


It thinks GoogleUtilities, PromiseObjC, and nanopb don’t exist. So I tried cleaning the build folder before attempting to build again, but the same happens. I also don’t know how to fix the problem with missing FBLPromises, which I believe should be part of AdMob.


The linker I’m trying to use is -ObjC -all_load $(inherited), which should solve problems related to using frameworks, but for some reason it “failed”.


How do I fix all this? Help would be really appreciated!

Mobile Ads SDK Forum Advisor Prod

unread,
May 26, 2020, 1:56:18 AM5/26/20
to jpk...@comcast.net, google-adm...@googlegroups.com

Hi Jon,

 

Thank you for raising this to us.

 

Could you confirm if you've properly imported the SDK using this guide? I've tried using our sample apps; however, could not reproduce the issue you've encountered. That said, could you share with us a sample project where the issue is reproducible so we could further check on our end?

 

Please send the details via Reply privately to author option.

 

Regards,

Mark Albios

Mobile Ads SDK Team



ref:_00D1U1174p._5004Q1zrf8P:ref

Jon Kantner

unread,
May 26, 2020, 8:35:34 PM5/26/20
to Google Mobile Ads SDK Developers
Actually, I think I might have ended up solving the problem myself. So if I’m correct, I was supposed to open my project via the .xcworkspace instead of the .xcodeproj, right? (Terminal told me to do that after running pod install --repo-update).

Mobile Ads SDK Forum Advisor Prod

unread,
May 26, 2020, 9:14:13 PM5/26/20
to jpk...@comcast.net, google-adm...@googlegroups.com

Hi Jon,

 

Thank you for getting back to us.

 

It's great that you're able to solve the problem. Yes, you're correct. When importing the Mobile Ads SDK via CocoaPods, it will create the Xcode Workspace (.xcworkspace) file. You will use this file when opening your project instead of the Xcode Project (.xcodeproj) file.

Hantu Duit

unread,
May 26, 2020, 9:19:10 PM5/26/20
to Mobile Ads SDK Forum Advisor Prod, jpk...@comcast.net, Google Mobile Ads SDK Developers

via Reply privately to author) so that I can investigate the issue?
Ad unit ID/s affected
Error code encountered
 


--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/93kwm000000000000000000000000000000000000000000000QAYU3200Xl3FwfRnTM6cTRczfjMVTw%40sfdc.net.

Mobile Ads SDK Forum Advisor Prod

unread,
May 27, 2020, 1:00:46 AM5/27/20
to hantu...@gmail.com, google-adm...@googlegroups.com, jpk...@comcast.net

Hi Hantu,

 

Thank you for reaching out to us.

 

It seems that you've copied one of our previous responses from one of the threads in this forum. Could you kindly clarify on what your concern is with the AdMob SDK?

 

Regards,

Ziv Yves Sanchez

Reply all
Reply to author
Forward
0 new messages