简体   繁体   English

不同型号iPhone上的PayPal问题

[英]PayPal issues on different iPhone models

I use PayPal in my iOS app. 我在iOS应用中使用PayPal。 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. 当我在iPhone 4s上运行该应用程序时,它运行正常,但是当我在iPhone 5s或iPhone 6s上运行该应用程序时,该应用程序崩溃了。 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. 我希望您的应用程序中通过PayPal安装了card.io SDK。 If you check files in your project you will get CardIO files. 如果您检查项目中的文件,则将获得CardIO文件。 In that you are using old version of card.io SDK. 因为您正在使用旧版本的card.io SDK。 This issue has been fixed in version 5.1.0. 此问题已在5.1.0版中修复。 Here is the issue 这是问题

Fixed : 固定的:

https://github.com/card-io/card.io-iOS-source/commit/b9b3c0a329b75d048a20190f8843da4f247d755a 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. card.io SDK的当前版本是5.3.2,您需要使用它。 I hope this will resolve your issue. 希望这能解决您的问题。

For more info refer : 有关更多信息,请参考:

https://github.com/card-io/card.io-iOS-SDK https://github.com/card-io/card.io-iOS-SDK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM