Skip to main content
Solved

Xcode Simulator IOS12 Strange Behaviour

  • 22 October 2021
  • 1 reply
  • 44 views

Forum|alt.badge.img+6

I ran my app on the Xcode iPhone SE iOS 12 Simulator and was surprised that Purchases.shared.offerings { (offerings, error) returned a value.  But also that the offering was corrupted. My available packages in offerings.current are 2 subscription and 1 Non-Consumable but 3 subscriptions were returned.  The Non-Consumable was incorrectly defined as a subscription.

On iOS 14 simulators Purchases.shared.offerings { (offerings, error) returns nothing as expected.

Can anyone explain what I am seeing here please.

The app is working in production.

regards

Peter

Best answer by jazmine

Hey @Peter Rule ,

Unfortunately, StoreKit does not work properly in iOS simulators. StoreKit's stability in the simulator has been historically flaky, resulting in random bugs when fetching products. I would definitely recommend testing on a real device.

 

Let me know if you have any other questions!

View original
Did this post help you find an answer to your question?

1 reply

jazmine
Forum|alt.badge.img+7
  • Dedicated Contributor
  • 122 replies
  • Answer
  • October 27, 2021

Hey @Peter Rule ,

Unfortunately, StoreKit does not work properly in iOS simulators. StoreKit's stability in the simulator has been historically flaky, resulting in random bugs when fetching products. I would definitely recommend testing on a real device.

 

Let me know if you have any other questions!


Reply


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