-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Replay options not visible from Objective-C without @import #4543
Comments
From native objc code, you need to use Can you check whether this works for the customer? |
Unfortunately my project is incompatible with the “-fmodules” and “-fcxx-modules” parameters. Defining these parameters causes the following error in a header file in my project.
|
Hello @barisyild |
Obviously this limits me a lot because I'm using the haxe language and I haven't found a way to do this. |
Sorry about that. We will investigate an alternative for this problem. |
@barisyild alongside |
When I import this header, the following error occurs. Showing Recent Messages
Error: In file included from ./src/sentry/SentryModel.mm:192:
2531 | @interface SentryUserFeedbackWidgetButtonMegaphoneIconView : UIView
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/Sentry-Swift.h:2531:62: attempting to use the forward class 'UIView' as superclass of 'SentryUserFeedbackWidgetButtonMegaphoneIconView'
11 | @class UIView;
| ^
In file included from ./src/sentry/SentryModel.mm:192:
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/SentryReplayApi.h:11:8: forward declaration of class here
2538 | @interface SentryUserFeedbackWidgetButtonView : UIView
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/Sentry-Swift.h:2538:49: attempting to use the forward class 'UIView' as superclass of 'SentryUserFeedbackWidgetButtonView'
11 | @class UIView;
| ^
In file included from ./src/sentry/SentryModel.mm:192:
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/SentryReplayApi.h:11:8: forward declaration of class here
2573 | @property (nonatomic) UIWindowLevel windowLevel;
| ^
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/Sentry-Swift.h:2573:23: unknown type name 'UIWindowLevel'
2577 | @property (nonatomic) NSDirectionalRectEdge location;
| ^
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/Sentry-Swift.h:2577:23: unknown type name 'NSDirectionalRectEdge'
2581 | @property (nonatomic) UIOffset layoutUIOffset;
| ^
/.../Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework/Headers/Sentry-Swift.h:2581:23: unknown type name 'UIOffset' |
Hello @barisyild, Im working on a fix for this problem, can you try our SDK from this link: https://github.com/getsentry/sentry-cocoa/actions/runs/12086165036/artifacts/2254223229 Inside of it you will find all the versions of our SDK, you can keep using |
Now it compiles. |
Perfect! I believe we can proceed with this solution. |
Hello @barisyild, unfortunately the given solution is not ideal for us, we're trying an alternative. One question: Are you using cocoapod to add Sentry to your project? |
I place directly to the folder. |
Strange, Im not able to reproduce it with the framework with the current release. This one: https://github.com/getsentry/sentry-cocoa/releases/download/8.41.0/Sentry-Dynamic.xcframework.zip Can you try this? |
Yes, I can reproduce the problem with this version. |
Platform
iOS
Environment
Production
Installed
CocoaPods
Version
Latest React Native one
Xcode Version
not sure
Did it work on previous versions?
No response
Steps to Reproduce
A customer on React Native, tried to enable replay through the native layer directly (they are initializign Sentry native directly).
But they said they couldn't call
options.experimental
from Objective-CAre you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: