Xcode Fail to build project when you add ADMOB

418 views
Skip to first unread message

Karim Lahbach

unread,
Nov 8, 2020, 7:40:09 AM11/8/20
to Google Mobile Ads SDK Developers

screen-shot-2563-10-29-19-42_v800.png
Hi Guys it been more that week and i'm having this problem every time i add admob
i truly don't know what to do 
can someone help me 
this the link of a simple project to reproduce the problem 

Thanks

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 9, 2020, 12:28:49 AM11/9/20
to kaspe...@gmail.com, google-adm...@googlegroups.com
Hi Karim,

Thank you for reporting this to us. I've downloaded your app, and able to build it successfully (please see attached screenshot). I'm currently using  XCode Version 12.0.1. Are you using a lower version of XCode on your end? If so, please update your XCode version, then build again your app.

Feel free to report back if you still encounter the issue after doing the recommendation above.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2783l9:ref
Screenshot at Nov 09 13-22-22.png

Karim Lahbach

unread,
Nov 9, 2020, 4:32:15 AM11/9/20
to Google Mobile Ads SDK Developers
Hi thanks for back to meScreen Shot 2020-11-09 at 10.17.55.png
Screen Shot 2020-11-09 at 10.13.29.png
this really wired i can reproduce the problem easy also i'm using the last version of xcode
please try this project again here is the link ( probably this will reproduce the problem )

Karim Lahbach

unread,
Nov 9, 2020, 11:14:11 AM11/9/20
to Google Mobile Ads SDK Developers
hi this may help you can trigger the problem by trying to convert to swift 5 
this will show the issue
Thanks

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 9, 2020, 12:40:13 PM11/9/20
to kaspe...@gmail.com, google-adm...@googlegroups.com
Hi Karim,

Thank you for the additional information. Just a few questions to ask you. First, were you able to run the code before adding in the admob sdk? Second , I was able to get the same errors as you but when looking over a lot of them they had to do with outdated code usage. Third, I saw that you appear to be targeting an iOS version that is lower then 8, looked like 4.3 which was also throwing an issue. Fourth looks to be that you are using the legacy API which is deprecated and accounts for almost all the errors and could be causing an issue with the UMP. Also I never saw the following line of code in any files 
#include <UserMessagingPlatform/UserMessagingPlatform.h>

I am seeing a large amount of Cprdova, which we do not support.

Regards,
 
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2783l9:ref
Message has been deleted
Message has been deleted
Message has been deleted

Karim Lahbach

unread,
Nov 9, 2020, 4:41:39 PM11/9/20
to Google Mobile Ads SDK Developers
Hi William
thank you for the help to answer your questions

1- Yes i can build project successfully if i'm not using Admob ( i attach simple example without Admob so you can check yourself)
2-3-4- i truly have no idea usually everything work fine to me before the last UMP update even when i get the the error of the lower targeting ios i can build the project easly without problems

Finally i just want to know what really make this problem happen ?
is it Cordova ?
is it the last UMP update ?
is it a bug in Xcode ?
just to make sure to address this issue to right people so please if you could help identify what exactly happening i will be more than grateful

Thanks Again


Message has been deleted

Karim Lahbach

unread,
Nov 9, 2020, 4:47:51 PM11/9/20
to Google Mobile Ads SDK Developers

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 10, 2020, 12:13:56 AM11/10/20
to kaspe...@gmail.com, google-adm...@googlegroups.com

Hi Karim,

I work along with William so let me assist you here. Have you tried running the command “pod install --repo-update” with your sample project file with the AdMob SDK implementation?

At first, I was able to reproduce the issue, but after running the above command I was able to build the app successfully, even with the Swift 5 (attached screenshot). Please note that the UMP SDK is included as a dependency of the Google Mobile Ads SDK Pod starting with Google Mobile Ads SDK 7.64.0. Thus, running the said command might fix the issue regarding the missing UserMessagingPlatform framework. More information about obtaining UMP SDK for iOS here.

Let me know if this works for you.


Regards,

Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2783l9:ref
img1.png

Karim Lahbach

unread,
Nov 10, 2020, 4:08:04 AM11/10/20
to Google Mobile Ads SDK Developers

Thank you so much it working 
Reply all
Reply to author
Forward
0 new messages