Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
165 stars 142 forks source link

Exception NSInvalidArgumentException caught in Braze method initWithApiKey:withAppboyOptions #313

Closed txm5586 closed 2 years ago

txm5586 commented 2 years ago

I'm opening this issue to reference the issue #263. The problem is still happing to me using SPM on XCode 13.0

[APPBOY] Exception NSInvalidArgumentException caught in Braze method 
initWithApiKey:withAppboyOptions:: +[ABKPersistentData configureForDataVersioning]: 
unrecognized selector sent to class 0x1024e5108
txm5586 commented 2 years ago

I was in a project with multiple modules. Turns out the AppBoy framework was added to the wrong module, so it was not building with added "-ObjC" flag. So I moved to the main target module, which had "-ObjC", so the exception is not happening anymore.