Solved

Can I test on iOS Simulator

  • 28 October 2022
  • 3 replies
  • 1477 views

Badge +4

I do not have a physical iPhone to test on. Can I tes on the iOS simulator on mac? Right now it keeps saying Purchases.getOfferings() is empty but it works fine on Android. 

 

Any tips for a new guy excited to launch his app! :-) 

icon

Best answer by Andy 28 October 2022, 17:26

View original

3 replies

Userlevel 5
Badge +8

Hey @Mike Jones you should be able to test on iOS simulator running iOS 14 or newer. 

You can find instructions here: https://www.revenuecat.com/docs/apple-app-store#ios-14-only-testing-on-the-simulator

Happy testing! 😃

Badge +4

@Andy I think the instructions screenshots are pretty out of date….

I am very lost on Step 2: 

 

Step 2: Create a New Scheme for StoreKit Testing

 

Once I created my storekit file and think saved it in the right spot… I now see this:

 


I dont see anything about Schemes...

Userlevel 5
Badge +8

@Mike Jones build Schemes are a feature in Xcode projects that allow you to basically create different sets of configurations for building / running / testing an app. 

 

In this case, we can use Schemes to have an easy way to switch from StoreKit Configuration file to Sandbox and back. 

 

You should be able to create a Scheme by selecting the one you’re using (the Runner at the top with an icon to its left), the going to manage, and duplicating that one. 

Here’s more information about the Schemes:

https://developer.apple.com/documentation/xcode/building-and-running-an-app

 

With that duplicated Scheme, you can go into Edit Scheme, and then under Run, go to Options, and look for StoreKit Configuration, and select the file. 

 

Reply