You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joaosouza-traxretail
changed the title
[Bug]: BrazeUI not found when trying to import it on a Objective-C class
[Bug]: BrazeUI not found when trying to import it on an Objective-C class
Feb 21, 2024
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:
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).
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
The text was updated successfully, but these errors were encountered: