-
Notifications
You must be signed in to change notification settings - Fork 3
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
iOS Crash when calling Purchases.configure with error configureWithAPIKey unrecognized selector sent to class #216
Comments
Hi, thanks for the detailed report! I'm not entirely sure what's going wrong, as everything you shared looks correct. The "unrecognized selector" error usually points to the linked framework (pod) being different from what the Kotlin code expects. Some thoughts/questions/leads:
|
Thanks @JayShortway will try again and paste the results shortly. Is there a way of achieving this without having to use CocoaPods? I'm not using them in my project and had to include them because of this. I'm currently using https://github.com/mirzemehdi/KMPRevenueCat which doesnt need me to use Cocoapods and trying to migrate to the official one. Also FYI the UI library is missing from the official docs installation section and the SDK reference, |
Thanks for this feedback. You're the third one to ask, so it seems we should do something about it. 😄 The PR linked above should make it possible to integrate without CocoaPods.
Regarding the Paywall docs, they are separate: https://www.revenuecat.com/docs/tools/paywalls. Regarding the SDK reference, you are right! That should be fixed by #207, meaning they'll get updated with our next release. |
Hi @brahyam, you should now be able to integrate |
Oh boy, I am so looking forward to this. I only started the CocoaPods integration because of the Paywall, but that has been a lift that has stalled me for a week now. Will see if I can try with the SPM side of things, thank you. |
Edit: I guess SPM hasn't picked up the new commit yet. So for now, you can use specify commit BELOW ISSUES RESOLVED - SEE EDIT ABOVE and |
@adrianegraphene Thanks for figuring this out! It's probably because the |
@adrianegraphene @brahyam Just FYI: starting with version |
@JayShortway I just tried and I'm still getting the same error as @adrianegraphene (using both urls he mentioned) Could it be because I still had the regular iOS RC package added?. After adding this one the package sync was failing to I had to remove the iOS one and reset packages cache for it to work. Would be great if you could update the docs to show this way of adding it without using pods |
Hi @brahyam, the docs have just been updated. This section is the one explaining how to integrate It's indeed likely that your issue was caused by the fact that you still had the regular |
the Contribution Guidelines
for existing Github issues
Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our
team will be able to triage and resolve the issue. Do not remove any of the steps from the
template below. If a step is not applicable to your issue, please leave that step empty.
I'm trying to integrate the KMP SDK into a KMP app (including the Paywall UI). However when calling from KMP
The iOS app crashes with the error:
No logs as the SDK is not able to initialize.
Purchases.configure(purchasesConfig)
to KMPExpected
SDK is initialized
Actual
App Crashes
have context, eg. stackoverflow, etc.)
I added a Pod to link the Hybrid framework as in the docs. This is my Pod.lock
This is my lib.versions.toml
This is my gradle
The text was updated successfully, but these errors were encountered: