Admob xcode error

152 views
Skip to first unread message

Bruce Simmons

unread,
Jan 17, 2019, 9:21:06 PM1/17/19
to Google Mobile Ads SDK Developers
Hi,

I have loaded the SDK and have test ads working in my IOS app (via xcode).  I get the warning message "'bottomLayoutGuide' was deprecated in iOS 11.0: Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor" but when I make that change the app crashes with no xcode errors displayed.

Any help?
-Bruce

mobileadssdk...@google.com

unread,
Jan 17, 2019, 10:49:02 PM1/17/19
to Bruce Simmons, Google Mobile Ads SDK Developers
Hi Bruce,

Thank you for the details provided.

Have you followed this guide for rendering AdMob Ads in the Safe Area? Could you provide to us a copy of your project (or at least a test project) that can reproduce the issue so we can test it on our end as well? You may provide this to us privately using Reply privately to author option.

Regards,
Ivan Bautista
Mobile Ads SDK Team




--

---
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-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/40423139-405d-4d2d-b1b9-a6c5bc0be66c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Aldous

unread,
Mar 7, 2019, 9:41:51 PM3/7/19
to google-adm...@googlegroups.com
I have the same problem, simply follow instructions on https://developers.google.com/admob/ios/banner and it crashes (adding adView programmatically). Your guide link contains the same problem, bottomLayoutGuide is no longer available, if we follow xcode's suggested replacement for it (view.safeAreaLayoutGuide.bottomAnchor) it will crash. What should we use??

mobileadssdk...@google.com

unread,
Mar 8, 2019, 3:03:42 AM3/8/19
to Stephen Aldous, Google Mobile Ads SDK Developers
Hi Stephen,

Thank you for reaching out to us.

Could you share with us a copy of your project (or at least a test project) where you are programmatically adding the GADBannerView so we can have a closer look on your implementation? You may use Reply privately to author option.


Regards,
Ivan Bautista
Mobile Ads SDK Team
On 03/08/19 10:41:51 stephen...@gmail.com wrote:
I have the same problem, simply follow instructions on https://developers.google.com/admob/ios/banner and it crashes (adding adView programmatically).

On Thursday, January 17, 2019 at 10:49:02 PM UTC-5, mobileadssdk-forumadvisor wrote:
Hi Bruce,

Thank you for the details provided.

Have you followed this guide for rendering AdMob Ads in the Safe Area? Could you provide to us a copy of your project (or at least a test project) that can reproduce the issue so we can test it on our end as well? You may provide this to us privately using Reply privately to author option.

Regards,
Ivan Bautista
Mobile Ads SDK Team




On 01/18/19 10:21:06 tekg...@gmail.com wrote:
Hi,

I have loaded the SDK and have test ads working in my IOS app (via xcode).  I get the warning message "'bottomLayoutGuide' was deprecated in iOS 11.0: Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor" but when I make that change the app crashes with no xcode errors displayed.

Any help?
-Bruce

--

---
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-sdk+unsubscrib...@googlegroups.com.

--

---
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-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk...@google.com

unread,
Mar 11, 2019, 3:48:18 AM3/11/19
to Stephen Aldous, Google Mobile Ads SDK Developers
Hi everyone,

We were able to reproduce the crash when we used the view.safeAreaLayoutGuide.bottomAnchor attribute as well. On the other hand, when we used the view.safeAreaLayoutGuide, the crash is not reproducible.

That said, we have raised this to the team and we'll get back to you for any feedback.

Regards,
Ivan Bautista
Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages