I am using Nextpeer with cocos2dx in iOS.
I have configure Nextpeer sdk with cocos2dx successfully.
In "AppController.mm" i am using following code
[Nextpeer initializeWithProductKey:#"KEY" andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]];
but my code is crashed with following log
2015-09-05 17:05:06.621 Test-mobile[5474:79097] Using Nextpeer version 2.2.2, build number 28, server: https://api.nextpeer.com/v3
2015-09-05 17:05:08.250 Test-mobile[5474:79097] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
*** First throw call stack:
(
0 CoreFoundation 0x000000010ac52c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010a828bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010ac52b9d +[NSException raise:format:] + 205
3 Foundation 0x0000000109af37ef +[NSJSONSerialization JSONObjectWithData:options:error:] + 67
4 Test-mobile 0x00000001060a85e5 -[NPStringsService loadResourceBundleStrings] + 159
5 Test-mobile 0x00000001060a82f1 -[NPStringsService fillStringModel] + 41
6 Test-mobile 0x00000001060a7ec1 -[NPStringsService init] + 72
7 Test-mobile 0x00000001060a7e2b +[NPStringsService initializeService] + 58
8 Test-mobile 0x0000000106061b2f +[Nextpeer initializeWithProductKey:andSettings:andDelegates:] + 1150
9 Test-mobile 0x00000001060616a4 +[Nextpeer initializeWithProductKey:andDelegates:] + 50
10 Test-mobile 0x000000010605ef07 -[AppController application:didFinishLaunchingWithOptions:] + 1095
11 UIKit 0x00000001077da788 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240
12 UIKit 0x00000001077db397 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2540
13 UIKit 0x00000001077de1de -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
14 UIKit 0x00000001077dd0d5 -[UIApplication workspaceDidEndTransaction:] + 179
15 FrontBoardServices 0x000000010e4a05e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
16 CoreFoundation 0x000000010ab8641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
17 CoreFoundation 0x000000010ab7c165 __CFRunLoopDoBlocks + 341
18 CoreFoundation 0x000000010ab7bf25 __CFRunLoopRun + 2389
19 CoreFoundation 0x000000010ab7b366 CFRunLoopRunSpecific + 470
20 UIKit 0x00000001077dcb42 -[UIApplication _run] + 413
21 UIKit 0x00000001077df900 UIApplicationMain + 1282
22 Test-mobile 0x000000010605f604 main + 100
23 libdyld.dylib 0x000000010b83b145 start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException.
Nextpeer SDK Version is 2.2.2.
Cocos2dx SDK Version is 3.7.1.
Xcode Version is 6.3.2.
How i can resolve this issue.
I have try following code
#try {
if([Nextpeer isNextpeerSupported])
{
NSLog(#"AAAAAAAAA");
[Nextpeer initializeWithProductKey:#"88b83720cf1fa8e9f2007f29e91b9dd6" andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]];
}
else
NSLog(#"BBBBBBBB");
}
#catch (NSException * e) {
NSLog(#"Exception: %#", e);
}
#finally {
}
but getting exception
2015-09-07 11:33:44.382 Test-mobile[2811:25650] Name: NSInvalidArgumentException
2015-09-07 11:33:44.382 Test-mobile[2811:25650] Reason: data parameter is nil
Related
I am trying to implement Google SignIn in my iOS project and getting runtime error at line:
GIDSignIn.sharedInstance().clientID = "mysecrectkey.apps.googleusercontent.com"
in AppDelegate. Error I am getting is something like below. I followed each step which is mentioned in following link and still no luck.
http://www.theappguruz.com/blog/integrate-google-signin-sdk-in-ios-application-using-swift
I tried adding -ObjC in Other Linker Flags section as well. Please help me to figure this out. Thanks
2016-10-09 17:16:57.754 GoogleLoginTest1[8996:611837] -[__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x618000071a80
2016-10-09 17:16:57.758 GoogleLoginTest1[8996:611837] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x618000071a80'
*** First throw call stack:
(
0 CoreFoundation 0x000000010ce2234b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010c46621e objc_exception_throw + 48
2 CoreFoundation 0x000000010ce91f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010cda7c15 ___forwarding___ + 1013
4 CoreFoundation 0x000000010cda7798 _CF_forwarding_prep_0 + 120
5 GoogleLoginTest1 0x000000010bb4272e -[GSDK_GTMSessionFetcherSessionDelegateDispatcher .cxx_destruct] + 11318
6 GoogleLoginTest1 0x000000010bb44551 -[GSDK_GTMSessionFetcherSessionDelegateDispatcher .cxx_destruct] + 19033
7 GoogleLoginTest1 0x000000010bb43fc4 -[GSDK_GTMSessionFetcherSessionDelegateDispatcher .cxx_destruct] + 17612
8 GoogleLoginTest1 0x000000010bb223ed _TFC16GoogleLoginTest111AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryVSC29UIApplicationLaunchOptionsKeyP____Sb + 685
9 GoogleLoginTest1 0x000000010bb22594 _TToFC16GoogleLoginTest111AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryVSC29UIApplicationLaunchOptionsKeyP____Sb + 180
10 UIKit 0x000000010da4068e -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 290
11 UIKit 0x000000010da42013 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4236
12 UIKit 0x000000010da483b9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
13 UIKit 0x000000010da45539 -[UIApplication workspaceDidEndTransaction:] + 188
14 FrontBoardServices 0x00000001131ac76b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
15 FrontBoardServices 0x00000001131ac5e4 -[FBSSerialQueue _performNext] + 189
16 FrontBoardServices 0x00000001131ac96d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
17 CoreFoundation 0x000000010cdc7311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
18 CoreFoundation 0x000000010cdac59c __CFRunLoopDoSources0 + 556
19 CoreFoundation 0x000000010cdaba86 __CFRunLoopRun + 918
20 CoreFoundation 0x000000010cdab494 CFRunLoopRunSpecific + 420
21 UIKit 0x000000010da43db6 -[UIApplication _run] + 434
22 UIKit 0x000000010da49f34 UIApplicationMain + 159
23 GoogleLoginTest1 0x000000010bb24cdf main + 111
24 libdyld.dylib 0x000000010fc4d68d start + 1
25 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
have you added Other linker flag : -OjcC
I use PayPal in my iOS app. When I run the app on the iPhone 4s it works perfectly, but when I run the app on the iPhone 5s or iPhone 6s the app crashes. This is the error:
2016-08-09 11:51:56.241 Signalyx[64835:356737] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 7} out of bounds; string length 4'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109138f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108756deb objc_exception_throw + 48
2 CoreFoundation 0x0000000109138e7d +[NSException raise:format:] + 205
3 CoreFoundation 0x000000010912468a -[NSTaggedPointerString getCharacters:range:] + 394
4 CoreFoundation 0x0000000109011eaa CFStringCompareWithOptionsAndLocale + 2970
5 CoreFoundation 0x0000000109124feb -[NSTaggedPointerString compare:options:range:locale:] + 219
6 Foundation 0x00000001082ecee3 -[NSString compare:options:range:] + 29
7 Signalyx 0x00000001054d328f __53-[PPZebraLocalizer localizeString:adaptedForCountry:]_block_invoke + 60
8 CoreFoundation 0x000000010906813b -[NSArray indexOfObject:inSortedRange:options:usingComparator:] + 491
9 Signalyx 0x00000001054d2fd4 -[PPZebraLocalizer localizeString:adaptedForCountry:] + 426
10 Signalyx 0x00000001054d3a44 PPZebraLocalizedStringWithAlert + 1044
11 Signalyx 0x00000001054c1da3 +[PPZebraUI localizedStringForKey:adaptedForCountry:] + 140
12 Signalyx 0x00000001054c2de1 +[PPZebraUI cancelBarButtonWithTarget:withAction:] + 88
13 Signalyx 0x00000001054b0c01 -[PPDeviceCheckViewController viewDidLoad] + 292
14 UIKit 0x0000000106d46cc4 -[UIViewController loadViewIfRequired] + 1198
15 UIKit 0x0000000106d47013 -[UIViewController view] + 27
16 UIKit 0x0000000106d991c5 -[UINavigationController preferredContentSize] + 194
17 UIKit 0x0000000106d1df26 -[UIPresentationController preferredContentSizeDidChangeForChildContentContainer:] + 59
18 UIKit 0x0000000106d1a2b4 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 95
19 UIKit 0x0000000106bc01ba _runAfterCACommitDeferredBlocks + 317
20 UIKit 0x0000000106bd3396 _cleanUpAfterCAFlushAndRunDeferredBlocks + 95
21 UIKit 0x0000000106bdf1c2 _afterCACommitHandler + 90
22 CoreFoundation 0x0000000109064947 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
23 CoreFoundation 0x00000001090648b7 __CFRunLoopDoObservers + 391
24 CoreFoundation 0x000000010905a50b __CFRunLoopRun + 1147
25 CoreFoundation 0x0000000109059e08 CFRunLoopRunSpecific + 488
26 GraphicsServices 0x000000010bf10ad2 GSEventRunModal + 161
27 UIKit 0x0000000106bb430d UIApplicationMain + 171
28 Signalyx 0x00000001053656af main + 111
29 libdyld.dylib 0x000000010970192d start + 1
30 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I hope there is card.io SDK installed in your app with PayPal. If you check files in your project you will get CardIO files. In that you are using old version of card.io SDK. This issue has been fixed in version 5.1.0.
Here is the issue
Fixed :
https://github.com/card-io/card.io-iOS-source/commit/b9b3c0a329b75d048a20190f8843da4f247d755a
The current version of card.io SDK is 5.3.2 and that you need to use. I hope this will resolve your issue.
For more info refer :
https://github.com/card-io/card.io-iOS-SDK
I am receiving a strange crash when using AudioKit to build a Swift based ios 8 application. I followed all the videos and am able to successfully build and launch an AudioKit based project using the bridging header, etc. Now in my main ViewController, I have just the following code based on the hello world example:
override func viewDidLoad() {
super.viewDidLoad()
let inst = AKInstrument()
//let oscillator = AKOscillator()
//inst.setAudioOutput(oscillator)
//AKOrchestra.addInstrument(inst)
//inst.play()
}
That runs fine, but the second that I uncomment the lines below initializing the AKInstrument, I get a crash shortly after my app launches:
0dBFS level = 32768.0
Csound version 6.05 (float samples) Aug 6 2015
libsndfile-1.0.26pre6
2015-10-22 11:19:15.024 NILG5[1281:37425] 1 MIDI sources
2015-10-22 11:19:15.025 NILG5[1281:37425] MIDI source 0: Session 1
440.0
2015-10-22 11:19:16.072 NILG5[1281:36836] -[AKOscillator operationName]: unrecognized selector sent to instance 0x7fb6904b78b0
2015-10-22 11:19:16.160 NILG5[1281:36836] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AKOscillator operationName]: unrecognized selector sent to instance 0x7fb6904b78b0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110094c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000111c64bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000011009c0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010fff213c ___forwarding___ + 988
4 CoreFoundation 0x000000010fff1cd8 _CF_forwarding_prep_0 + 120
5 NILG5 0x000000010f43d14b -[AKOscillator init] + 43
6 NILG5 0x000000010f430790 _TTOFCSo12AKOscillatorcfMS_FT_S_ + 16
7 NILG5 0x000000010f42c2c7 _TFCSo12AKOscillatorCfMS_FT_S_ + 71
8 NILG5 0x000000010f42b564 _TFC5NILG514ViewController11viewDidLoadfS0_FT_T_ + 308
9 NILG5 0x000000010f42b6e2 _TToFC5NILG514ViewController11viewDidLoadfS0_FT_T_ + 34
10 UIKit 0x0000000110ac91d0 -[UIViewController loadViewIfRequired] + 738
11 UIKit 0x0000000110ac93ce -[UIViewController view] + 27
12 UIKit 0x00000001109e4289 -[UIWindow addRootViewControllerViewIfPossible] + 58
13 UIKit 0x00000001109e464f -[UIWindow _setHidden:forced:] + 247
14 UIKit 0x00000001109f0de1 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x0000000110994417 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
16 UIKit 0x000000011099719e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
17 UIKit 0x0000000110996095 -[UIApplication workspaceDidEndTransaction:] + 179
18 FrontBoardServices 0x0000000116ce95e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
19 CoreFoundation 0x000000010ffc841c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
20 CoreFoundation 0x000000010ffbe165 __CFRunLoopDoBlocks + 341
21 CoreFoundation 0x000000010ffbdf25 __CFRunLoopRun + 2389
22 CoreFoundation 0x000000010ffbd366 CFRunLoopRunSpecific + 470
23 UIKit 0x0000000110995b02 -[UIApplication _run] + 413
24 UIKit 0x00000001109988c0 UIApplicationMain + 1282
25 NILG5 0x000000010f430ee7 main + 135
26 libdyld.dylib 0x00000001123a6145 start + 1
27 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Seems like its complaining about [AKOscillator operationName]: unrecognized selector sent to instance 0x7fb6904b78b0 ... but the docs clearly allow you to initialize an AKOscillator without any parameters...
Not sure, any ideas??
My application get crash on launch . It never goes on app didfinish
2015-10-09 15:41:55.396 MÖLLER[11840:574331] Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '
-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack: ( 0 CoreFoundation 0x026cc746 __exceptionPreprocess + 182 1 libobjc.A.dylib
0x01f9ca97 objc_exception_throw + 44 2 CoreFoundation
0x025c2c93 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
+ 451 3 CoreFoundation 0x025d6b7b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 75 4 MOÃàLLER 0x0004d65b -[TabBarViewController
viewDidLoad] + 3291 5 UIKit
0x00a97db7 -[UITabBarController initWithNibName:bundle:] + 221 6
MOÃàLLER 0x0008984d -[AppDelegate
application:didFinishLaunchingWithOptions:] + 268 7 UIKit
0x008e5f87 -[UIApplication
_handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 287 8 UIKit 0x008e6d71 -[UIApplication
_callInitializationDelegatesForMainScene:transitionContext:] + 2938 9 UIKit 0x008ea3d2 -[UIApplication
_runWithMainScene:transitionContext:completion:] + 1639 10 UIKit 0x009038ee _84-[UIApplication
handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke
+ 59 11 UIKit 0x008e8ffa -[UIApplication workspaceDidEndTransaction:] + 155 12 FrontBoardServices 0x03208c9e __37-[FBSWorkspace
clientEndTransaction:]_block_invoke_2 + 71 13 FrontBoardServices
0x0320872f _40-[FBSWorkspace performDelegateCallOut:]_block_invoke +
54 14 FrontBoardServices 0x0321ad7c
__31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30 15 CoreFoundation 0x025ee050
CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 16 16 CoreFoundation
0x025e3963 __CFRunLoopDoBlocks + 195 17 CoreFoundation
0x025e37bb __CFRunLoopRun + 2715 18 CoreFoundation
0x025e2a5b CFRunLoopRunSpecific + 443 19 CoreFoundation
0x025e288b CFRunLoopRunInMode + 123 20 UIKit
0x008e89b2 -[UIApplication _run] + 571 21 UIKit
0x008ec0b6 UIApplicationMain + 1526 22 MOÃàLLER
0x0006a509 main + 94 23 libdyld.dylib
0x03fe1ac9 start + 1 ) libc++abi.dylib: terminating with uncaught
exception of type NSException (lldb)
the error says
-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
The error means you are trying to put nil in the dictionary (which is not allowed). Since you are building the dictionaries with string literals those can't be nil.
Finally the issue is resolved. As My Home View Have Ref of Font which we never used in app.
I have an app which work perfectly on iPhone. But when i starting it on iPad and tap on UITextField it’s crash with error:
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(
0 CoreFoundation 0x032a05e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x02c1e8b6 objc_exception_throw + 44
2 CoreFoundation 0x032414e6 -[__NSArrayM objectAtIndex:] + 246
3 Parking 0x002b0ccd -[UIView(Hackery) pd_swizzled_exchangeSubviewAtIndex:withSubviewAtIndex:] + 141
4 UIKit 0x020a89ef -[_UIBackdropView ensureProperSubviewOrdering] + 666
5 UIKit 0x020a810e -[_UIBackdropView updateSubviewHierarchyIfNeededForSettings:] + 127
6 UIKit 0x020a47dc -[_UIBackdropView setComputesColorSettings:] + 235
7 UIKit 0x01b1c87a -[UIKBBackdropView triggerUpdate:] + 400
8 Foundation 0x028f1bf9 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
9 CoreFoundation 0x032fc524 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
10 CoreFoundation 0x0325400b _CFXNotificationPost + 2859
11 Foundation 0x0282b951 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
12 UIKit 0x01e1cb1b -[UIInputViewTransition postNotificationsForTransitionEnd] + 1054
13 UIKit 0x0c69c453 -[UIInputViewTransitionAccessibility(SafeCategory) postNotificationsForTransitionEnd] + 51
14 UIKit 0x01e13138 __53-[UIPeripheralHost(UIKitInternal) executeTransition:]_block_invoke1332 + 455
15 UIKit 0x019ef005 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 306
16 UIKit 0x019d8c6c -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 267
17 UIKit 0x019d8f58 -[UIViewAnimationState animationDidStop:finished:] + 80
18 UIKit 0x0c6a4b67 -[UIViewAnimationStateAccessibility(SafeCategory) animationDidStop:finished:] + 66
19 QuartzCore 0x00821a44 _ZN2CA5Layer23run_animation_callbacksEPv + 304
20 libdispatch.dylib 0x0362b4b0 _dispatch_client_callout + 14
21 libdispatch.dylib 0x0361975e _dispatch_main_queue_callback_4CF + 340
22 CoreFoundation 0x03305a5e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
23 CoreFoundation 0x032466bb __CFRunLoopRun + 1963
24 CoreFoundation 0x03245ac3 CFRunLoopRunSpecific + 467
25 CoreFoundation 0x032458db CFRunLoopRunInMode + 123
26 GraphicsServices 0x03f7d9e2 GSEventRunModal + 192
27 GraphicsServices 0x03f7d809 GSEventRun + 104
28 UIKit 0x0198cd3b UIApplicationMain + 1225
29 Parking 0x00073cad main + 141
30 libdyld.dylib 0x038bd70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I tried comment all my code to find a reason. Even created an empty view controller and add text field to it. But it’s didn't helped. Any idea?
It is an issue with PonyDebugger which has been fixed in the latest release. Use a version >= 0.3.1.
pod 'PonyDebugger', '~> 0.3.1'