-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Bug]: BrazeUI not found when trying to import it on an Objective-C class #108
Comments
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
The text was updated successfully, but these errors were encountered: