- Home /
Google play services not working with IL2CPP build
Hi, when we build xcode project with il2cpp from unity, google play games doesn't work. We were using unity 4.6.2f1, everything was working fine. But we had to change this "mono" to "IL2CPP" for making 64 bit ios build, then google play games stopped working. As unity guy mentioned in this thread,
http://forum.unity3d.com/threads/il2cpp-exe-error.311499/
We have updated unity to 4.6.3p3. Still google play services not working and when we checked the debug messages, it was throwing "Exception Google Login: Object contains non-primitive or non-blittable data".
If any one has fixed this issue or know any work around, please share.
Thanks in advance.
If possible, please try the latest version of Unity and the latest version of Google Play Games. We corrected a similar issue in the Google Play Games code in $$anonymous$$arch. You can see the pull request for that fix here:
https://github.com/playgameservices/play-games-plugin-for-unity/pull/420
We have updated [to unity 5.1.2f1 and google play game services 0.9.21] as you have suggested. Now its throwing an google login exception says that "Exception Google Login: Couldn't locate the OAuth Client Id, provide this by navigating to Google Play Games->iOS Setup".
But we are pretty sure, we already have done the iOS setup, its kind of weird, Don't know, why its still throwing this error. We have cleanedu
Also, we were getting errors related to facebook sdk, when we complied in xcode.
We are really kind of stuck now, we are not sure, going for unity 5 is the right choice or not. Because, even if we make google play works fine, we doubt about other plugins[such as unity ads, admob, game house promotion network] we are using will work fine or not. :(
One more question apart from these, can we still manually add frameworks in xcode ins$$anonymous$$d using cocoapods? or we have to add them into pod file?
It is probably safest to stick with the latest 4.6 version of Unity (sorry, I should have been more clear). You can find the 4.6.7p3 release here:
http://unity3d.com/unity/qa/patch-releases
Hopefully that will avoid any problems with an upgrade to Unity 5. Note though that I think this error was caused by a problem in Google Play Games, so you may be able to stick with Unity 4.6.3p3 and use the latest Google Play Games code.
can we still manually add frameworks in xcode ins$$anonymous$$d using cocoapods?
Yes, nothing in Unity 5 should prevent this.
Hi Josh, Sorry for the late reply. We have already update the unity to 4.6.7 and gpgs to 0.9.21 in the mean time. Everything is working fine now. Thanks for helping around.
And we were facing few compile time errors in xcode project regarding unity ads framework. So we have removed it from frameworks list, which was automatically added. Then we have added unity ads and gpgs frameworks manually then it started working fine.
Your answer
Follow this Question
Related Questions
iOS 64 bit support problem 1 Answer
Out of memory errors on iOS with 64-bit build 1 Answer
Type.GetConstructor stopped working after building with IL2CPP 0 Answers
UNET & IL2CPP memory allocation? 1 Answer
Exception: Il2cp did not run properly. 2 Answers