Questions tagged [storekittest]
8 questions
8
votes
1 answer
SKReceiptRefreshRequest always fails in Xcode 12.2 with .storekit configuration file
When I run the app with .storekit configuration file in Xcode 12.2 / iOS 14.2 Simulator, my SKReceiptRefreshRequest always fails, I get an error in my func request(_ request: SKRequest, didFailWithError error: Error) delegate method. Here are the…

silvansky
- 2,426
- 2
- 19
- 20
4
votes
1 answer
Storekit configuration file for UITest
I created Configuration.storekit file, and it work for Run on ios simulator.
But when i'm trying to run UITest, it always fails on initing SKTestSession(configurationFileNamed: "Configuration") with error:
caught error: "Error…

Dmitrii Kononets
- 74
- 5
2
votes
0 answers
iOS StoreKit2 - Is there anyway to find which payments are still pending
I have started using the new StoreKit2 APIs. I wanted to know if there is a way to see if a product is still pending after the app is relaunched.
In the new APIs, a purchase is executed by calling purchase() on a Product"
let result = try await…

reza23
- 3,079
- 2
- 27
- 42
2
votes
0 answers
Apple StoreKit 2: how can we test Family Sharing?
I'm not a member of any Family in iCloud. I want to understand what happens when a user is subscribed through Family Sharing but also how to use StoreKit when the user is subscribed twice: as an individual who purchased the product and as a member…

alpennec
- 1,864
- 3
- 18
- 25
2
votes
0 answers
Simulate failed transaction using StoreKitTest
I am trying to use StoreKitTest to simulate .failed transaction in my unit tests. For the test session I set:
testSession.failTransactionsEnabled = true
testSession.failureError = SKError.Code.unknown
after that I…

sash
- 8,423
- 5
- 63
- 74
0
votes
0 answers
Error 'An unknown error occurred when syncing from App Store Connect' is displayed when try to sync storeKit configuration from App Store Connect
When attempting to sync storeKit configuration from App Store Connect, an error message stating 'An unknown error occurred when syncing from App Store Connect' is displayed.
Xcode: Version 14.3.1 (14E300c)
BundleID is same with setting in App Store…

user20835862
- 11
- 2
0
votes
0 answers
StoreKit 2 Sandbox user subscriptions wrong productID issue
Strange behavior was found for subscription upgrades/downgrades for Sandbox users.
Step 1: Select from the internal app UI productId.
Step 2: Get the product from StoreKit by Product.products(for: [productID])
Step 3: Purchase fetched product:…

Natali
- 2,934
- 4
- 39
- 53
0
votes
1 answer
StoreKitTest : Request product error Domain=ASDErrorDomain Code=950 "Unhandled exception"
I'm trying to unit test my framework calling StoreKit with the new (iOS 14) StoreKitTest and I'm getting this error when I fetch products :
Error Domain=SKErrorDomain Code=0 "UNKNOWN_ERROR" UserInfo={NSLocalizedDescription=UNKNOWN_ERROR,…

vmeyer
- 1,998
- 21
- 23