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!
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
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.
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.
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