In my Xcode 15 beta 8 setup, I'm encountering an issue with the iOS 17 simulator where StoreKit.Product.purchase()
consistently throws StoreKit Error.Unknown
while running XCTest.
- Inside XCTest, I have declared
SKTestSession(configuration: "")
. - I'm using
try await StoreKit.Product.purchase(options: [])
. - However, it always throws
StoreKit Error.Unknown
. There's no such problem with the iOS 16.4 simulator, where I can retrieve the result and handle it appropriately. This issue is only present in the iOS 17 simulator. - Is there any necessary workaround or fix for this?
- I've also included the console log output for your reference:
デフォルト 10:06:45.981812+0900 storekitd AMSURLRequest: [597e_SK2] Failed to fetch client ID domains from bag. Defaulting to not including analytics cookies. error = { Error domain=AMSErrorDomain, code=204 | URL = http://localhost:XXXXX/inApps/history?REDACTED