Xcode preview not working after adding Admob

174 views
Skip to first unread message

Toby265

unread,
Oct 16, 2024, 5:57:12 AM10/16/24
to Google Mobile Ads SDK Developers
Hey there,

I've just implemented Google Admob in my iOS App and everything works well using the iPhone simulator. 
Unfortunately the Xcode preview isn't working anymore. I get 30 errors.
Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found.
Undefined symbol: _GULIsLoggableLevel
Undefined symbol: _GULOSLogBasic
Undefined symbol: _GULOSLogError
Undefined symbol: _GULOSLogInfo
...
...
Linker command failed with exit code 1 (use -v to see invocation)

Does anybody have an idea how to fix the preview in Xcode?
Thank you!

Mobile Ads SDK Forum Advisor

unread,
Oct 16, 2024, 1:49:37 PM10/16/24
to tobias.bi...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support Team.

I have executed our Google Sample project with the Mobile Ads SDK version 11.10.0 within the Xcode version 15.4. Ads are loaded successfully, and the Xcode preview is also visible. Could you kindly attempt to replicate these steps within our Google Sample project and confirm whether the issue persists?

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGehv:ref" (ADR-00271893)

Thanks,
 
Google Logo Mobile Ads SDK Team


Toby265

unread,
Oct 17, 2024, 2:47:13 PM10/17/24
to Google Mobile Ads SDK Developers
Thanks for sharing the sample project. 
The solution was to import firebase using cocoapods instead of using Xcode package manager.

Thanks
Toby265

Anu Nsipine

unread,
Oct 18, 2024, 4:46:52 AM10/18/24
to Toby265, Google Mobile Ads SDK Developers

v


--

---
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/5e6a011d-c805-4942-bc13-898e648af3a8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages