Skip to main content
Solved

Can I test on iOS Simulator

  • October 28, 2022
  • 3 replies
  • 3386 views

Forum|alt.badge.img+5

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! :-) 

Best answer by Andy

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! 😃

View original
Did this post help you find an answer to your question?
This post has been closed for comments

3 replies

Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • Answer
  • October 28, 2022

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! 😃


Forum|alt.badge.img+5
  • Author
  • Dedicated Member
  • 17 replies
  • October 28, 2022

@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...


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • October 31, 2022

@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. 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings