Xcode Simulator 10.3中未调用ApplePay`paymentAuthorizationViewController:didAuthorizePayment:handler:` [英] ApplePay `paymentAuthorizationViewController:didAuthorizePayment:handler:` not called in Xcode Simulator 10.3

查看:224
本文介绍了Xcode Simulator 10.3中未调用ApplePay`paymentAuthorizationViewController:didAuthorizePayment:handler:`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ApplePay的 PKPaymentAuthorizationViewControllerDelegate 方法paymentAuthorizationViewController:didAuthorizePayment:handler:.

ApplePay's PKPaymentAuthorizationViewControllerDelegate method paymentAuthorizationViewController:didAuthorizePayment:handler: is not being called when run on an Xcode 10.3 simulator.

在使用Xcode 10.3的设备上构建此方法时,将按预期方式调用此方法.

This method is called as expected when built to a device with Xcode 10.3.

在Xcode 10.2.1模拟器中按预期方式调用了此方法.

This method is called as expected in the Xcode 10.2.1 simulator.

不推荐使用的方法paymentAuthorizationViewController:didAuthorizePayment:completion:表现出相同的否定行为.

The deprecated method paymentAuthorizationViewController:didAuthorizePayment:completion: exhibits the same negative behavior.

基于它可以在设备和旧版Xcode上运行的事实,我可以确定我的实现是正确的,除非我丢失了一些已更改的内容.有人知道如何为Xcode 10.3模拟器修复此问题吗?

Based on the fact that it works on device and in older versions of Xcode, I'm certain my implementation is correct unless I'm missing something that changed. Does anyone know how to fix this for the Xcode 10.3 simulator?

推荐答案

此问题已在Xcode 11.3中修复.

This has been fixed in Xcode 11.3.

这篇关于Xcode Simulator 10.3中未调用ApplePay`paymentAuthorizationViewController:didAuthorizePayment:handler:`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆