Posts

Post not yet marked as solved
1 Replies
1.2k Views
I've created a Configuration.storekit file in Xcode 12 beta 2, and when I use SKProductsRequest in an app target, everything works as expected. However, when I use SKProductsRequest in a framework, I get this error: Error Domain=SKErrorDomain Code=0 "UNKNOWN_ERROR" UserInfo={NSLocalizedDescription=UNKNOWN_ERROR, NSUnderlyingError=0x600002f4cf30 {Error Domain=ASDErrorDomain Code=507 "Error decoding object" UserInfo={NSLocalizedDescription=Error decoding object, NSLocalizedFailureReason=Attempted to decode store response}}} I've tried setting the configuration both in my app scheme and in my framework scheme, but I can't get it to work. Does the new StoreKit testing work with frameworks?
Posted Last updated
.
Post not yet marked as solved
2 Replies
707 Views
Does ASAuthorizationPasswordProvider work on macOS? I've watched WWDC 2019 session 516 and I'm using the code that's presented there, but I can't get it to work on macOS. The same code works fine on iOS. It's not clear from the video if this is supported in AppKit apps, or if it's only for Catalyst apps.This is my code:let authController = ASAuthorizationController(authorizationRequests: [ ASAuthorizationPasswordProvider().createRequest() ]) authController.delegate = self authController.presentationContextProvider = self authController.performRequests()I get this message when I run it on macOS:[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7089 "(null)"The error in the ASAuthorizationControllerDelegate isError Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)"My bundle id, entitlements and server are configured correctly.Thanks,Steven
Posted Last updated
.