Solved

Xcode Simulator IOS12 Strange Behaviour

  • 22 October 2021
  • 1 reply
  • 42 views

Userlevel 1
Badge +5

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

icon

Best answer by jazmine 27 October 2021, 21:52

View original

1 reply

Userlevel 3
Badge +7

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