Post

Replies

Boosts

Views

Activity

Xcode 12 StoreKit Configuration file not used by unit tests
Hello, I have added a Xcode 12 StoreKit Configuration file (.storekit) so I can test purchases, and added it to the scheme for running my target in debug mode - the config file is working great when I run the application in an Xcode simulator. However, I also have a suite of Xcode unit tests, and when I run those with an iOS 14 simulator it appears the StoreKit Configuration file is not active as all product requests for SKProduct fail. The requests all work normally in an iOS 13 simulator. Is there somewhere else I need to enable a StoreKit Configuration file for unit tests specifically? I tried adding an SKTestSession into a unit test initialized with the name of my StoreKit config but that did not help, as I'm not using the SKTestSession to make purchases but trying to trigger purchase mechanisms in my application itself. I also found some advice online to wait five seconds after launch and then it would work (???) but that didn't work for me either.
1
0
1.8k
Nov ’20
iPhone 14 simulator not loading SKProducts
I was testing my app using the Xcode 12 beta, in an iOS 14 simulator - when it tried to load SKProducts (all subscriptions) that normally have been loading just fine, I got back an error: Error Domain=SKErrorDomain Code=0 "UNKNOWNERROR" UserInfo={NSLocalizedDescription=UNKNOWNERROR, NSUnderlyingError=0x600000c903f0 {Error Domain=ASDErrorDomain Code=507 "Error decoding object" UserInfo={NSLocalizedDescription=Error decoding object, NSLocalizedFailureReason=Attempted to decode store response}}} Will we still be able to load products in simulators going forward, or can we only load the local test versions of products from the new StoreKit configuration files? I would really, really still like to be able to load production products in a simulator so I can see the actual data that is in AppStore connect.
7
0
12k
Jun ’20
Where has Automation Instrument gone?
In expirmenting with Xcode8 recently, I noticed that the Automation Intrument appears to not be there anymore... I know you can use UI testing in Xcode now to do some things Automation was doing, but that doesn't seem to include things like ways to simualte location changes (I was using Automation to simulate location changes including speed, which GPX files do not do).Has that instrument gone entirely, or is there something I need to do to enable it?
2
0
4.1k
Aug ’16