Post

Replies

Boosts

Views

Activity

How to use SKTestSession in UI Tests?
Is there a way to use .storekit file and SKTestSession in UI tests? It works fine in Unit Tests, but when it comes to UI tests SKTestSession initializes OK, but StoreKit doesn't work. SKProductsRequest fails with this error: Error Domain=SKErrorDomain Code=0 "UNKNOWN_ERROR" UserInfo={NSLocalizedDescription=UNKNOWN_ERROR, NSUnderlyingError=0x600003d30f30 {Error Domain=ASDErrorDomain Code=507 "Error decoding object" UserInfo={NSLocalizedDescription=Error decoding object, NSLocalizedFailureReason=Attempted to decode store response}}} When I use the same .storekit in regular simulator launch it works just fine.
5
0
1.8k
Sep ’20