Google Play Games Plugin for Unity3d possible fixed for Xcode Project

Google Play Games Plugin for Unity3d  possible fixed for Xcode Project

Unity3d version : 5.5.1

Google Play Games  Plugin version: 0.9.36 (0x00000936)

Before anything else take Note this errors is came from the google play services not from our plugin to make things clear

Building the Unity3d Project on ios for Xcode with Google play services we encounter some errors

  1. google Mobile Ads framework is missing
  2. loadRequest error on GADURewardBasedVideoAd.m on xcode
  3. Missing GoogleMobileAds.framework
  4. google sign file missing

To Fix this you must follow this important guides 1st

https://github.com/playgameservices/play-games-plugin-for-unity#ios-setup

https://github.com/playgameservices/play-games-plugin-for-unity#building-for-ios

https://github.com/playgameservices/play-games-plugin-for-unity#common-build-errors-on-ios

Important Notes:

  1. use $(inherited) on build settings for HEADER_SEARCH_PATHS, OTHER_CFLAGS and OTHER_LDFLAGS for both pod project and unity3d xcode project.
  2. Enable Module for both pod project and unity3d xcode project.
  3.  add the GoogleMobileAds.framework if this is missing
  4. always clean before you build
  5. run pod init 1st when pod install is not working
  6. check Podfile and replace it with

     

Update: we just Integrate the Google Firebase Analytics Plugin For Unity3d and yes the process is hell again and there’s so many errors if you are interested on how to fix this errors and issues please follow this link  http://www.gigadrillgames.com/2017/02/11/integrating-firebase-analytics-to-android-ultimate-plugin-for-unity3d/

if you still can’t fix this issues please follow read and watch this forum and video links

https://forum.unity3d.com/threads/ios-admob-and-xcode-7-beta-module-not-found.348360/

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/OVfGXHJY2tA

And this youtube video will teach you on how to do this things

The ios sdk

https://firebase.google.com/docs/admob/ios/download

Google Signin sdk if you needed it

https://developers.google.com/identity/sign-in/ios/sdk/

Temporary fixed is this for load request error

Note When adding the framework it should be like this

Tips for running pod commands

https://github.com/CSStickyHeaderFlowLayout/CSStickyHeaderFlowLayout/issues/53

Some old setup but relevant and that help us on this errors

https://firebase.google.com/docs/admob/unity/start

Other Links that might help you if your encounter more errors

https://github.com/playgameservices/play-games-plugin-for-unity/issues/435

https://github.com/playgameservices/play-games-plugin-for-unity/issues/633

https://github.com/playgameservices/play-games-plugin-for-unity/issues/1009

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/game-engines/pLcrV1x_Nsk

https://forum.unity3d.com/threads/gidsignin-h-file-not-found-xcode.390104/

https://github.com/playgameservices/play-games-plugin-for-unity/issues/1526

https://github.com/playgameservices/play-games-plugin-for-unity/issues/1549

https://github.com/playgameservices/play-games-plugin-for-unity#excluding-all-google-play-game-services-when-building-for-ios

https://forum.unity3d.com/threads/gidsignin-h-file-not-found-xcode.390104/

https://github.com/playgameservices/play-games-plugin-for-unity/issues/703

https://forum.unity3d.com/threads/building-unity-project-with-google-play-services-for-ios-tutorial.397869/

and one more weird thing every time you build a  xcode project on unity3d on our case google mobile ads sdk is always missing  to fix just remove and delete google mobile ads sdk on your project and add it again and then build clean and then build

and If you are so lucky and you encounter this error “Your Binary is not optimized for iphone5” this links might lead you on how to solve that problem

http://dannysu.com/2014/04/16/not-optimized-for-iphone5/

https://github.com/Simbul/baker/issues/1201

http://stackoverflow.com/questions/36757853/xcode-error-while-validation-your-binary-is-not-optimized-for-iphone-5

http://stackoverflow.com/questions/26373958/your-binary-is-not-optimized-for-iphone-5

about updating plist.info for the launch images here’s some guides and references

http://stackoverflow.com/questions/25926661/how-do-i-create-launch-images-for-iphone-6-6-plus-landscape-only-apps

http://stackoverflow.com/questions/18976412/launch-screens-supporting-ios6-and-ios7-forced-to-splash-screen

http://stackoverflow.com/questions/26441782/how-to-use-uilaunchimages-key

https://forums.xamarin.com/discussion/39400/error-itms-90096-your-binary-is-not-optimized-for-iphone-5

https://issues.apache.org/jira/browse/CB-7632

ITuneConnect and TestFlight Problems

one more thing if you upload you ipa to itunesconnect and the build is not showing on internal testing and external testing check if you received email asking for you to put permission for camera if yes just put this on your info.plist

if you still can’t see the new build on internal testing you just need to select nothing then save and then go back again and the new build should be showing after that then select it TADA!

I Hope this helps you out!

For more questions or comments or suggestions please email us at gigadrillgames@gmail.com