XCode build issue with Unity plugin 3.0.0

149 views
Skip to first unread message

Влад Андрощук

unread,
Feb 7, 2016, 1:18:54 PM2/7/16
to Google Mobile Ads SDK Developers
Hi, when I build unity project in XCode, I have those issue:



Veer Arjun Busani

unread,
Feb 8, 2016, 10:22:57 AM2/8/16
to Google Mobile Ads SDK Developers
Hi Влад,

Sometimes, if you are using other plugins such as Google Play Games in your Unity, it would affect your pod file while building for iOS. Just ensure that your pod file has - 

pod 'Google-Mobile-Ads-SDK', '~> 7.6'

Then run pod install. Also ensure that you are running the latest v7.2 of Xcode and that you 'Allow Non-modular Includes in Framework Modules' in Build Settings is set to YES.

You can get back to us if you still any further support.

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team  

Влад Андрощук

unread,
Feb 8, 2016, 12:20:49 PM2/8/16
to Google Mobile Ads SDK Developers
Hi! Thanks for answer. I need compile with Unity, and run pod for instal SDK.
Okay, but if I want to use Unity Cloud Build that does not support pods?

понедельник, 8 февраля 2016 г., 17:22:57 UTC+2 пользователь Veer Arjun Busani написал:

Veer Arjun Busani

unread,
Feb 8, 2016, 2:27:42 PM2/8/16
to Google Mobile Ads SDK Developers
Hi Влад,

You would have to install the pods only if your pod file is not properly implemented in the Xcode build. Let's say that you are using multiple plugins, which would have their own pod file, the build post processor of Unity would pick only one of the those pod files and make a build.  So the other plugins pods would never be implemented, causing the error you are currently facing. 

Could you confirm me the contents of the pod file you have in the Xcode build? If you do not see Google Mobile Ads pod, there is an easy way to fix this. Simply copy the contents of other pod file into Mobile Ad's and vice versa. You can find pod file in Unity for Mobile Ads at Assets -> GoogleMobileAds -> Editor -> Podfile. 

Влад Андрощук

unread,
Feb 8, 2016, 6:08:21 PM2/8/16
to google-adm...@googlegroups.com
Hi! Podfile is the same that go with 3.0.0 plugin.
And pod can't deliver SDK library in Unity Cloud Build because last not support it.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/mIj9n8cZQIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ram Parameswaran (Mobile SDK Team)

unread,
Feb 11, 2016, 7:55:11 PM2/11/16
to Google Mobile Ads SDK Developers

The latest release of the plugin (3.0.1) should fix issues with Unity Cloud Build. However, you will have to modify the plugin to disable bitcode for the Xcode generated project. This can be done by adding the following code snippet to line 61 of 'Postprocessor.cs':


project.SetBuildProperty(target, "ENABLE_BITCODE", "NO");


Once the Google Mobile Ads iOS SDK is updated to support bitcode (which should be very soon), this change will no longer be required. Please note you will have to include the Google Mobile Ads iOS SDK within the 'Assets/Plugins/iOS/' directory of your Unity plugin as well.


- Ram


On Monday, February 8, 2016 at 3:08:21 PM UTC-8, Влад Андрощук wrote:
Hi! Podfile is the same that go with 3.0.0 plugin.
And pod can't deliver SDK library in Unity Cloud Build because last not support it.
2016-02-08 21:27 GMT+02:00 Veer Arjun Busani <mobileadssdk-advisor+veer@google.com>:
Hi Влад,

You would have to install the pods only if your pod file is not properly implemented in the Xcode build. Let's say that you are using multiple plugins, which would have their own pod file, the build post processor of Unity would pick only one of the those pod files and make a build.  So the other plugins pods would never be implemented, causing the error you are currently facing. 

Could you confirm me the contents of the pod file you have in the Xcode build? If you do not see Google Mobile Ads pod, there is an easy way to fix this. Simply copy the contents of other pod file into Mobile Ad's and vice versa. You can find pod file in Unity for Mobile Ads at Assets -> GoogleMobileAds -> Editor -> Podfile. 

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/mIj9n8cZQIg/unsubscribe.
To unsubscribe from this group and all its topics, 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.

rahul patil

unread,
Jul 10, 2019, 1:24:30 AM7/10/19
to Google Mobile Ads SDK Developers
i m surfacing this problem last 3 days but problem is not solved xcode give an error googlemoileads.h not found plz reply???

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 10, 2019, 6:28:04 AM7/10/19
to rahulpat...@gmail.com, google-adm...@googlegroups.com
Hi Rahul,

Thank you for reaching out to us. Let me do the best I can to help you with this.

As per checking, it appears that the issue lies on the SDK plugin which was not properly imported. Could you download the Mobile Ads Unity plugin and import the Mobile Ads Unity plugin to you project again? If you still encounter any issue? Please provide us your project file (you may upload it to your Google drive and provide the shareable link to us) so we could check your implementation on our end as well? Please use "Reply Privately to Author" option to share the details privately.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UCbyBL:ref
Reply all
Reply to author
Forward
0 new messages