Closed joaosouza-traxretail closed 1 month ago
Hi @joaosouza-traxretail,
Thank you for opening this ticket. We've been able to reproduce that error in a Swift project that makes use of Objective-C classes (but not in Objective-C projects — see our ObjC examples).
We're tracking the issue internally and will update here once we finished our investigation and/or have a fix ready.
In the meantime, you can use one of our prebuilt repository to avoid the issue completely:
Best,
Hi @lowip thanks for answering so fast! Doing some investigation it seems that the error is thrown only if I added it to the header (.h) file. The problem with that is that I'm unable to use a custom class (that is different from the AppDelegate) as a BrazeInAppMessageUIDelegate (because I can only use the declaration BrazeInAppMessageUIDelegate in the implementation (.m) file).
Thanks for all the info. Given the age of this issue and the valid workarounds suggested above, I am closing this out.
Platform
iOS
Platform Version
17.2
Braze SDK Version
8.0.1
Xcode Version
15.2
Computer Processor
Intel
Repro Rate
100%
Steps To Reproduce
Example:
@import BrazeKit;
and@import BrazeUI;
Expected Behavior
Import BrazeUI in a Objective-C file.
Actual Incorrect Behavior
Unable to use BrazeUI in a Objective-C file.
Verbose Logs
No response
Additional Information
No response