After upgrading to 5.2. ios GameCenter related. il2cpp::vm::method::getparamcount:

Right after upgrading to Unity 5.2
Xcode is 6.4
and iOS is 8.4

EVERYTIME,
after startup, as soon as gamecenter is called, it crashes.

I even see the welcome back notifaction from game center right before it happens everytime.

1 Like

Any help with this would be amazing! Let me know if you need more info. I got it to work by not making any calls to Unity’s Social methods, but I need gamecenter so this is only a temporary solution for me.

So after hours of testing today, I’ve found that the crash only happens when Unity Ads are enabled for iOS. And Specifically, when using Unity Ads through the new Services window in Unity 5.2.

I went back to the old way of using Unity Ads (downloading the plugin through the asset store), then disabled the one in the services window, now all of the Game Center calls work again.

So just a tip for people trying to use Unity Ads on iOS with Unity’s Social API at the same time. Don’t use the new Services window to enable the ads.

At least this is my case.

2 Likes

Same problem here =(

I also got a crash on game center loading after enabling the new unity ads.

Hi, thanks for feedback. As a workaround, you can disable Ads in the services window, and download the Asset Store version from Unity Asset Store - The Best Assets for Game Making, using the usual way of integrating Ads as described on https://unityads.unity3d.com/help/Documentation for Publishers/Integration-Guide-for-Unity-Asset-Store

We have been looking into this particular issue with GameCenter, however without being able to reproduce locally so far. If anyone has a simple project where this reproduces, please PM it to me.

Thanks,
Rasmus

Actually is pretty simple to replicate the problem. Create a new project and enable Unity Ads trough the Unity Services window. Be sure that if you hit a button, it will actually show the ad. Then just create a script, attach it to a GameObject and call in the Start method Social.localUser.Authenticate. In the editor it works perfectly, but when you deploy to an iOS Device, it crashes immediately as authenticate is called

I also got a crash on game center loading after enabling the new unity ads.
I can offer a simple project where this reproduces. Still need now?

Thanks. We have been able to reproduce now, and have a bug report for this issue. I’ll let you know as soon as we have any news on this.

-Rasmus

Same happening here. Another workaround is just change from il2cpp to mono.

1 Like

I have the same problem, I have changed scripting backend to mono2x from il2cpp. My game happily works on my test device (iPad mini) but now I can’t create a 64 bit build. When I change architecture in Xcode to (armv7, arm64), Xcode throws a bunch of errors while linking. Any advice? Unity version: 5.2.0f3

Correct, changing to use Mono is not a solution you can use, as only IL2CPP can produce 64-bit iOS builds (see e.g. Unity Blog)

We’re working with the scripting team to get this issue solved. For now workaround is to disable Ads from Services window in Unity 5.2 and download Unity Ads asset store package from Unity Asset Store - The Best Assets for Game Making

We’ll let you know as soon as we have any news, and apologize for the trouble related to this.

-Rasmus

2 Likes

The confirmed bug report is Unity Issue Tracker - iOS GameCenter crash in combination with Ads when using IL2CPP and we’re aiming to get this into a patch release and be included in 5.2.2. I’ll keep you informed when it’s released.

-Rasmus

2 Likes

Thank youuuuu =D That are some awesome news!!!

I updated to Unity 5.2.2 today and now I’m having this issue, I was working with Unity 5.1.2 and everything was fine until today.