【问题标题】:Application crashes when try to scan card using Card.io-iOS-SDK.尝试使用 Card.io-iOS-SDK 扫描卡时应用程序崩溃。
【发布时间】:2016-02-02 07:08:38
【问题描述】:

我与 Card.io 合作很久了,但现在当我点击相机按钮扫描卡时,它开始意外崩溃。

以下是崩溃日志。

<Error>: *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[NSTaggedPointerString getCharacters:range:]: Range {0, 7} out of bounds; string length 6'
    *** First throw call stack:
    (0x1845b5900 0x183c23f80 0x1845b5848 0x18459ce88 0x1844a7994 0x18459d634 0x100414aa8 0x1844eda04 0x1004147f4 0x1004153d4 0x10041557c 0x1003e8ea0 0x1892a80c0 0x1892a7cc4 0x189648930 0x189605930 0x189602340 0x189558b70 0x189566030 0x189299c24 0x18456c588 0x18456a32c 0x18456a75c 0x184499680 0x1859a8088 0x189310d90 0x10016de20 0x18403a8b8)
Feb  2 12:15:27 iPhone SpringBoard[54] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Feb  2 12:15:27 iPhone SpringBoard[54] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Feb  2 12:15:27 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.upperlife.instacare[0x4a0a][369]) <Notice>: Service exited due to signal: Abort trap: 6
Feb  2 12:15:27 iPhone SpringBoard[54] <Warning>: Application 'UIKitApplication:com.upperlife.instacare[0x4a0a]' crashed.
Feb  2 12:15:28 iPhone UserEventAgent[23] <Warning>: 215163172432: id=com.upperlife.instacare pid=369, state=0

【问题讨论】:

  • 你用的是哪个版本.....

标签: ios objective-c swift cardio


【解决方案1】:

由于您使用的是旧版本的 Card.io SDK for iOS,所以这是导致 iOS 9 崩溃的主要原因,已在 5.1.0 版本中修复。

问题已在 github 中提出:- https://github.com/card-io/card.io-iOS-SDK/issues/120

已解决:- https://github.com/card-io/card.io-iOS-source/commit/b9b3c0a329b75d048a20190f8843da4f247d755a

【讨论】:

    猜你喜欢
    • 2013-06-05
    • 2014-07-09
    • 1970-01-01
    • 1970-01-01
    • 2017-05-18
    • 2015-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多