Presenting PKPaymentAuthorizationViewController always results in a total crash with pointing to my AppDelegate: Thread 1: signal SIGABRT
let vc = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest) as PKPaymentAuthorizationViewController?
if vc != nil{
vc!.delegate = self
self.present(vc!, animated: true, completion: nil)
}else{
print("error")
}
libc++abi.dylib: terminating with uncaught exception of type NSException
btw.: I am checking .canMakePayments() if it is available first.
The exception message is
Supported orientations has no common orientation with the application, and [PKPaymentAuthorizationViewController shouldAutorotate] is returning YES