ios - 在Xcode .07和Xcode 7.1中的模拟器中应用Pay崩溃

标签 ios xcode applepay

我正在测试Apple Pay并尝试进行购买示例,但是当我在XCode 7.0和7.1中的模拟器中时,可以使用Pay with Passcode进行付款,并且在点击该按钮后,它会使模拟器崩溃。

有任何想法吗?

Process:               PassbookUIService [10809]
Path:                  /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/PassbookUIService.app/PassbookUIService
Identifier:            PassbookUIService
Version:               1.0 (1.0)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [10692]
Responsible:           launchd_sim [10692]
User ID:               501

Date/Time:             2015-09-11 17:08:10.953 +0100
OS Version:            Mac OS X 10.10.5 (14F27)
Report Version:        11
Anonymous UUID:        ECB58F9C-C22D-6885-D23E-251989A674E0

Sleep/Wake UUID:       A0D81423-EF8E-48CF-9C81-E81BF0FCF129

Time Awake Since Boot: 19000 seconds
Time Since Wake:       6600 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderSet initWithObjects:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 182.4 - Device: iPhone 6s - Runtime: iOS 9.1 (13B5110e) - DeviceType: iPhone 6s

Application Specific Backtrace 1:
0   CoreFoundation                      0x00000001103b6f65 __exceptionPreprocess + 165
1   libobjc.A.dylib                     0x0000000110743deb objc_exception_throw + 48
2   CoreFoundation                      0x0000000110287cfe -[__NSPlaceholderSet initWithObjects:count:] + 334
3   CoreFoundation                      0x00000001102f7f9f +[NSSet setWithObject:] + 47
4   PassKit                             0x000000010ea6c47c -[PKPaymentOptionsDefaults setDefaultBillingAddress:forPaymentPass:] + 585
5   PassKit                             0x000000010eaf1bd9 -[PKPaymentAuthorizationServiceViewController _didAuthorizePaymentWithToken:] + 233
6   UIKit                               0x000000010edcb825 -[UIApplication sendAction:to:from:forEvent:] + 92
7   UIKit                               0x000000010ef32c8e -[UIControl sendAction:to:forEvent:] + 67

最佳答案

https://developer.apple.com/library/tvos/releasenotes/DeveloperTools/RN-Xcode/Chapters/xc7_release_notes.html#//apple_ref/doc/uid/TP40001051-CH5-DontLinkElementID_135

在“已知问题”中

  • 如果请求用户的帐单邮寄地址,则无法使用Apple Pay在Simulator中进行模拟交易。 (22551685)

  • 看来,我们需要等待Xcode的新版本。

    关于ios - 在Xcode .07和Xcode 7.1中的模拟器中应用Pay崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32527773/

    相关文章:

    ios - 测试 ApplePay SDK

    ios - 添加 iOS 8 启动画面会导致 App 扭曲

    ios - 如何使用 Swiftui 在 uitableviewcell 中添加 View ?

    ios - 确定信标的准确距离

    ios - 截取 tableview 的屏幕截图时如何包含导航栏

    ios - 如何构建具有不同外观/品牌的不同版本的应用程序?

    iOS Apple Pay - 自定义 PKPaymentButton

    ios - PKPaymentAuthorizationViewController 总是返回 nil?

    ios - 出现键盘时 View 不向上移动

    当手机处于 sleep 模式时,iOS BLE 在后台扫描广告数据