Skip to content

not working with ios below 15 #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DrWaleedNour opened this issue Apr 8, 2025 · 5 comments
Open

not working with ios below 15 #120

DrWaleedNour opened this issue Apr 8, 2025 · 5 comments
Labels
question Further information is requested

Comments

@DrWaleedNour
Copy link

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

@x401om
Copy link
Contributor

x401om commented Apr 8, 2025

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

@DrWaleedNour
Copy link
Author

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

@x401om
Copy link
Contributor

x401om commented Apr 10, 2025

@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 x401om added the question Further information is requested label Apr 14, 2025
@Gisman4ik
Copy link

Gisman4ik commented May 1, 2025

@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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants