Closed radutacatalin closed 3 years ago
Why did you close the issue @radutacatalin ?
This was caused by not adding the -ObjC linker flag. I was able to integrate the SDK successfully using SPM in a new framework where I could enable the -ObjC flag, and then importing it in the main project.
Report
[APPBOY] Exception NSInvalidArgumentException caught in Braze method initWithApiKey:withAppboyOptions:: +[ABKPersistentData configureForDataVersioning]: unrecognized selector sent to class 0x107773ab0
Describe your environment.
What did you do?
Integrate Braze through SPM
What did you expect to happen?
Normal start of Appboy shared instance
What happened instead?
Braze SDK doesn't create any sessions for the test user. Log: [APPBOY] Exception NSInvalidArgumentException caught in Braze method initWithApiKey:withAppboyOptions:: +[ABKPersistentData configureForDataVersioning]: unrecognized selector sent to class 0x107773ab0
Steps to reproduce
Follow the steps to add the SDK using SPM.
Code Snippet
Appboy.start(withApiKey: appKey, in: application, withLaunchOptions: launchOptions)