question

bevansmedia avatar image
bevansmedia asked

Unity iOS GameCircle crash on start

Having a real problem with a crash that only seems to be happening on my old iPhone 4S. The Unity game runs fine and without error on everything else (Kindle Fire HD, Android Phones, iPad). The iPhone is updated fully from today but didn't seem to solve anything. The crash happens as soon as the splash screen finishes, and, I assume, GameCircle init's. This is the log I'm getting in XCode: leglessReptilian[332:aa13] AmazonInsightsSDK: Resolved variation: 'Control' for project: 'ManifestSrc' from server 2014-08-04 14:23:58.959 leglessReptilian[332:aa13] AmazonInsightsSDK: Resolved variation: 'Test' for project: 'InitSigninAlertTest' from server 2014-08-04 14:23:58.979 leglessReptilian[332:db03] E background.html doesn't exist 2014-08-04 14:23:59.144 leglessReptilian[332:db03] Uncaught exception: NSInvalidArgumentException: *** -[NSURL initFileURLWithPath:isDirectory:]: nil string parameter ( 0 CoreFoundation 0x30b5df9b + 154 1 libobjc.A.dylib 0x3b3d8ccf objc_exception_throw + 38 2 CoreFoundation 0x30b5dec5 + 0 3 Foundation 0x31499f0b + 106 4 Foundation 0x31499e17 + 46 5 leglessReptilian 0x00b6eb9d +[AGResources GameCircleBundleURL] + 124 6 leglessReptilian 0x00b74801 +[AGContentManager revertToDefault] + 80 7 leglessReptilian 0x00b72c97 __57+[AGContentManager checkForUpgradeWithCompletionHandler:]_block_invoke + 134 8 libdispatch.dylib 0x3b8c0833 + 10 9 libdispatch.dylib 0x3b8c7ad7 + 222 10 libdispatch.dylib 0x3b8c7d29 + 56 11 libsystem_pthread.dylib 0x3ba02bd3 _pthread_wqthread + 298 12 libsystem_pthread.dylib 0x3ba02a98 start_wqthread + 8 ) 2014-08-04 14:23:59.148 leglessReptilian[332:db03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:isDirectory:]: nil string parameter' *** First throw call stack: (0x30b5df83 0x3b3d8ccf 0x30b5dec5 0x31499f0b 0x31499e17 0xb6eb9d 0xb74801 0xb72c97 0x3b8c0833 0x3b8c7ad7 0x3b8c7d29 0x3ba02bd3 0x3ba02a98) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) Anyone have any ideas?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello bevansmedia, Sorry for the delayed response, hopefully this finds you well. One thing I have noticed from at least looking at the project following a Unity build on our GameCircle plugin is even though our GameCircle.bundle file is listed in the Unity project under Assets->Plugins->iOS , that the file doesn't seem to come into the resulting Xcode project. One thing you can do to get around this for now is actually after the fact when you are having to do your other Xcode build modifications such as adding UTI and an API key(as well the required frameworks and libraries) into the project bring the GameCircle.bundle file into your Xcode project and make sure that it is included in the Unity-iPhone build target dependencies and that the GameCircle.bundle is listed under Copy Bundle Resources in your Xcode build target settings. This should at least work around the issue while we figure out why Unity's build isn't importing our bundle properly.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bevansmedia avatar image
bevansmedia answered
Managed to solve it finally by ensuring I had the most up-to-date package in Unity and exporting to a new build, then doing the usual business of adding the Frameworks and such. Must have just been a dodgy file somewhere, seems to be working fine on all devices again now! Thanks for the assistance!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.