Hi guys,
I’m pretty new to Unity on iOS and would like to know what’s the best way to debug the application once it has been deployed on the device.
Of course launching the app through xcode will get you the low level info about the crash but most of the it’s pretty useless when the issue is in the C# code.
So what do you think is the best solution for debugging ? Attach MonoDevelop debugger to the device as explained in the Unity doc ? Use the Simulator with MonoDevelop ?
Does attaching to the device actually work? MonoDevelop shows “any iOS device” in the Attach to dialog but the spinning beach ball is always present, and I can’t actually select it.
My iPad is on iOS 7.1.1 and I’m using Unity 4.5.1 and MonoDevelop 4.0.1.
Just a heads up. It seems to be that debugging is only possible if you use Mono as compiler not IL2CPP. So make sure under iOS build settings you have IL2CPP as build target. And once you run the game using XCode under Mono debug attach window it should show up your iOS device. Finally make sure iOS device and your computer are running on same network. Hope this helps
And there are lots of IL2CPP bugs currently, therefore if you compile with Mono you might not come across specific bug your looking for. Therefore use a combination of Debug logs to isolate if you have any specific issues.
Note : IL2CPP bugs are not documented openly and are internally fixed through bug reports unfortunately.
Simple things for e.g :
(671995) - iOS/IL2CPP: Fixed List.FindAll()
Even though patch releases are unstable if your developing for iOS I would recommend keep updating to patch releases in order to get fixes related to IL2CPP