2016-10-04 7 views
0

私は目的のCプロジェクトにPaypalを統合しようとしています。 ペイパルのログイン画面が表示され、私は私のログインデータを入力し、成功をログインしてこのビューは、アプリケーションのクラッシュは私に次のエラーpaypal SDKの統合の目的c

*** 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      0x0000000113defd85 __exceptionPreprocess + 165 
1 libobjc.A.dylib      0x00000001137f7deb objc_exception_throw + 48 
2 CoreFoundation      0x0000000113cec23e -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 318 
3 CoreFoundation      0x0000000113cfe5bb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59 
4 AppCreator       0x000000010d890e1e +[PPZebraUI text:withAnnotation:] + 810 
5 AppCreator       0x000000010d875c87 -[PPFundingOption titleForDisplay] + 318 
6 AppCreator       0x000000010d8b187f -[PPPaymentFundingOptionSelectionCell refreshContent] + 653 
7 AppCreator       0x000000010d8b0bfc -[PPPaymentAttributeSelectionCell initWithViewController:withTitle:withPickerTitle:withDataSource:] + 1293 
8 AppCreator       0x000000010d88db04 -[PPSelectPayMethodViewController paymentAttributeSelectionCells] + 310 
9 AppCreator       0x000000010d8d4601 -[PPSelectPayMethodViewControllerIOS7 updateTableToConfirm:] + 977 
10 AppCreator       0x000000010d8d416e -[PPSelectPayMethodViewControllerIOS7 refreshTable:] + 100 
11 AppCreator       0x000000010d8d4229 -[PPSelectPayMethodViewControllerIOS7 viewDidAppear:] + 87 
12 UIKit        0x000000010f41d335 -[UIViewController _setViewAppearState:isAnimating:] + 830 
13 UIKit        0x000000010f41dcb8 -[UIViewController _endAppearanceTransition:] + 262 
14 UIKit        0x000000010f45886f -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1290 
15 UIKit        0x000000010f44e630 __49-[UINavigationController _startCustomTransition:]_block_invoke + 233 
16 UIKit        0x000000010fcaa4c8 -[_UIViewControllerTransitionContext completeTransition:] + 101 
17 UIKit        0x000000010f2658a3 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke95 + 834 
18 UIKit        0x000000010f32d53e -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 644 
19 UIKit        0x000000010f30a7ff -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 241 
20 UIKit        0x000000010f30abae -[UIViewAnimationState animationDidStop:finished:] + 80 
21 QuartzCore       0x000000010f12e3c8 _ZN2CA5Layer23run_animation_callbacksEPv + 308 
22 libdispatch.dylib     0x000000011440b3eb _dispatch_client_callout + 8 
23 libdispatch.dylib     0x00000001143f31ef _dispatch_main_queue_callback_4CF + 1738 
24 CoreFoundation      0x0000000113d490f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 
25 CoreFoundation      0x0000000113d0ab99 __CFRunLoopRun + 2073 
26 CoreFoundation      0x0000000113d0a0f8 CFRunLoopRunSpecific + 488 
27 GraphicsServices     0x0000000115780ad2 GSEventRunModal + 161 
28 UIKit        0x000000010f27cf09 UIApplicationMain + 171 
29 AppCreator       0x000000010d3251df main + 111 
30 libdyld.dylib      0x000000011444092d start + 1 

を与えて記録されたクライアントのデータを表示する必要がある前のビューにポップした後) libcの+ + abi.dylib:NSExceptionタイプのキャッチされていない例外で終了する

SDkを別のアプリケーションで試してみましたが、これは完全に動作します。このエラーはプロジェクトにsdkを追加すると発生します。 誰でもこのエラーを引き起こす可能性のあるものを手伝ってください。

+0

エラーの最初の行log 'オブジェクト[0]'からnilオブジェクトを挿入しようとすると、 'nil'を辞書に挿入しようとしています。それは役に立ちますか?クラッシュを生成するコードを表示できますか? – phi

+0

問題は、これは私のコードではなく、「PayPalPaymentViewController」を表示した後に発生し、Paypal SDKがこのクラッシュが発生したログインしたユーザー情報を表示しようとすると、ログインを成功させるので、 – Nariman

答えて

0

私はこの問題が別のライブラリにあったことを知っていました。 "UIFont"クラスの "preferredFontForTextStyle"を無効にする関数がありました。これは私の問題の原因となっていた です。 そのような不適切なクラッシュに直面した場合は、他のすべてのクラスを1つずつ削除して、遠方クラスの別の行との衝突によってエラーが発生していないことを確認してください。