Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 beta 8: try await .purchase() consistently throws StoreKitError.Unknown during XCTest on iOS 17 simulator
Any progress here? Still not working as of Xcode 15.2. The 16.4 simulator isn't working for me either. I'm getting: Error enumerating unfinished transactions: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x600000c5b780 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=http://localhost:50398/inApps/history?REDACTED, AMSStatusCode=400, NSLocalizedFailureReason=The response has an invalid status code}}, storefront-country-code=USA, client-environment-type=XcodeTest(file:///Users/usrname/Library/Developer/XCTestDevices/AACF3F51-FA80-45B6-B9F1-A47574CE548F/data/Containers/Shared/AppGroup/749C8FFE-AF64-4A2D-A041-E19F365027A2/Documents/Persistence/Octane/com.apple.dt.xctest.tool/)} Missing transaction data for purchase Purchase did not return a transaction: unknown If I set the simulated error to nil it's not working either. If I use let p = try await session.buyProduct(identifier: products.first!.id) I'm getting: Failed to complete off-device buy for appstore.xyz. The purchase was successul, but it didn't return the expected transaction JWS. error Error Domain=SKErrorDomain Code=0 "(null)" Edit: Looks like it requires a host app. Then it works
Feb ’24