AdaptySDK-iOS icon indicating copy to clipboard operation
AdaptySDK-iOS copied to clipboard

not working with ios below 15

Open DrWaleedNour opened this issue 1 year ago • 5 comments

i update adapty to version 3.4.1, it working good with ios 15 and later, but it cause crash in configuration with below ios 15

DrWaleedNour avatar Apr 08 '25 10:04 DrWaleedNour

Hi @DrWaleedNour! AdaptyUI methods are only available on iOS 15 or later. What exactly do you mean by ‘crash’ in this context?

x401om avatar Apr 08 '25 15:04 x401om

when update to last version, the app not lanuch, its min. target is = ios 13, but when downgrade adapty to verision 3.1.0, it is worked, so last version not compatible with ios 14 or 13

DrWaleedNour avatar Apr 10 '25 09:04 DrWaleedNour

@DrWaleedNour as I said, now it is possible to use AdaptyUI methods only with iOS 15 or newer, so you have to wrap all the method calls with available directive. Please take a look into our Demo Apps.

x401om avatar Apr 10 '25 11:04 x401om

@x401om +1, I’m also experiencing a crash on iOS 14.8. I’m definitely not using AdaptyUI in this project — everything is built through paywall remote config. The app crashes on launch, meaning during the SDK configuration stage

(after update from v2.11.1 to v3.5)

Gisman4ik avatar May 01 '25 10:05 Gisman4ik

@x401om @DrWaleedNour In my case it turned out to be caused by RealmSwift, in my project Realm was calling: malloc_ptr classes(objc_copyClassList(&numClasses), &free);

and on iOS < 15 it would crash because it ended up iterating over the new StoreKit2 classes that Adapty’s latest version adds. The solution was to avoid that global class-list enumeration by explicitly setting "objectTypes" on my Realm configuration.

Just sharing here in case anyone else runs into the same issue

Gisman4ik avatar May 19 '25 15:05 Gisman4ik