question

overlawledosg avatar image
overlawledosg asked

iOS Not Working

Trying to get GameCircle running on iOS but after following the guide I'm getting this when running the App. 2014-02-14 16:41:59.932 GameCircleTest[13495:70b] WARNING: URL type not found in Info.plist 2014-02-14 16:41:59.949 GameCircleTest[13495:70b] W GameCircle has not been initialized yet. 2014-02-14 16:41:59.952 GameCircleTest[13495:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: GAME_ID)' *** First throw call stack: ( 0 CoreFoundation 0x01ea55e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x01c288b6 objc_exception_throw + 44 2 CoreFoundation 0x01f2f578 -[__NSDictionaryM setObject:forKey:] + 888 3 CoreFoundation 0x01f3423f -[NSMutableDictionary setObject:forKeyedSubscript:] + 47 4 GameCircleTest 0x000164c5 -[AGMetricsManager genericAttributes] + 271 5 GameCircleTest 0x00016144 -[AGMetricsManager recordEvent:] + 183 6 GameCircleTest 0x0002dc7b -[AGGameDataMap reportEventWithName:] + 120 7 GameCircleTest 0x0002d6d1 -[AGGameDataMap merge:] + 1045 8 GameCircleTest 0x0003a439 -[AGDiskSynchronizer loadFromDisk] + 170 9 GameCircleTest 0x0003b570 -[AGSynchronizationManager syncFromDiskToMemory] + 82 10 GameCircleTest 0x00007c4d -[AGWhispersync syncMemoryFromDisk] + 63 11 GameCircleTest 0x00007c08 __31+[AGWhispersync sharedInstance]_block_invoke + 99 12 libdispatch.dylib 0x031354b0 _dispatch_client_callout + 14 13 libdispatch.dylib 0x03124e17 dispatch_once_f + 182 14 libdispatch.dylib 0x03124d5c dispatch_once + 31 15 GameCircleTest 0x00007ba3 +[AGWhispersync sharedInstance] + 69 16 GameCircleTest 0x0000d452 +[GameCircle beginWithFeatures:completionHandler:] + 218 17 GameCircleTest 0x00002ae2 -[LabTestAppDelegate application:didFinishLaunchingWithOptions:] + 722 18 UIKit 0x00990355 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309 19 UIKit 0x00990b95 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1536 20 UIKit 0x009953a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824 21 UIKit 0x009a987c -[UIApplication handleEvent:withNewEvent:] + 3447 22 UIKit 0x009a9de9 -[UIApplication sendEvent:] + 85 23 UIKit 0x00997025 _UIApplicationHandleEvent + 736 24 GraphicsServices 0x02ade2f6 _PurpleEventCallback + 776 25 GraphicsServices 0x02adde01 PurpleEventCallback + 46 26 CoreFoundation 0x01e20d65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53 27 CoreFoundation 0x01e20a9b __CFRunLoopDoSource1 + 523 28 CoreFoundation 0x01e4b77c __CFRunLoopRun + 2156 29 CoreFoundation 0x01e4aac3 CFRunLoopRunSpecific + 467 30 CoreFoundation 0x01e4a8db CFRunLoopRunInMode + 123 31 UIKit 0x00994add -[UIApplication _run] + 840 32 UIKit 0x00996d3b UIApplicationMain + 1225 33 GameCircleTest 0x0000300d main + 141 34 libdyld.dylib 0x033c770d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) Any help would be appreciated.
10 |5000

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

overlawledosg avatar image
overlawledosg answered
I should also mention that I've ONLY added the code in the documentation here https://developer.amazon.com/public/apis/engage/gamecircle/docs/setting-up-ios
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 overlawledosg, Looking at the console output that you have placed in your forum post, it doesn't appear that the GameCircle framework detected the required changes to your project's Info.plist file. When you go into that file, you should have something similar to what we have under Step 3: Update info.plist , with a replacement of com.amazon.airpatriots with your own app's bundle identifier. https://developer.amazon.com/public/apis/engage/gamecircle/docs/setting-up-ios
10 |5000

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