【问题标题】:Apply Pay crashing in simulator in Xcode .07 and Xcode 7.1在 Xcode .07 和 Xcode 7.1 的模拟器中应用支付崩溃
【发布时间】:2015-09-11 16:11:33
【问题描述】:

我正在测试 Apple Pay 并尝试进行样品购买,但是当我在 XCode 7.0 和 7.1 的模拟器中时,有一个使用密码支付的选项,并且在你点击之后它一直在崩溃模拟器..

有什么想法吗?

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

【问题讨论】:

标签: ios xcode applepay


【解决方案1】:

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 的模拟交易无法完成。 (22551685)

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

【讨论】:

  • 谢谢,更新到最新的 Xcode(10.0 版)为我解决了这个问题
猜你喜欢
  • 1970-01-01
  • 2021-01-13
  • 2016-10-19
  • 1970-01-01
  • 1970-01-01
  • 2015-06-22
  • 1970-01-01
  • 1970-01-01
  • 2012-07-26
相关资源
最近更新 更多