-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Failing to compile on latest xcode 16 + 8.32 #4233
Comments
Hello @MattJustMatt, thanks for reaching out. Can you share the error log? I would like to see which files contain these errors. |
I have the same problem, but I don't use cocoapod :( |
@MattJustMatt, @barisyild, are you using Sentry in an Objc project? We had reports of this error when users are importing sentry from the umbrella header instead of importing the module. Instead of |
related docs PR: getsentry/sentry-docs#10994 |
Yeah i am using objc project and importing sentry swift fixes my issue. |
@MattJustMatt I am facing a simmilar issue on Xcode 16 beta 5? |
@MattJustMatt, @harish-suthar. This was fixed already, we're releasing a new version today. |
We need to investigate whether it is possible to keep using only |
This would be helpful. We have a cross platform app that loads the headers in a .cpp/.mm file and there may be some noise trying to get modules to work in this context, haven't investigated deeply yet |
Turns out switching to modules is non trivial in our codebase (enabling the compiler flag for them causes all sorts of downstream issues). A header file import route would be very appreciated if it's possible! |
Thanks for keeping us updated - we'll definitely look into providing a header import, but we don't have an ETA at the moment |
Hello @MattJustMatt #import <MetricKit/MetricKit.h>
#import <Sentry/Sentry.h>
#import <Sentry/Sentry-Swift.h> Until we find an alternative solution. |
We received feedback that the above workaround functions as intended - so we're closing this. If you're impacted by this and the above doesn't work, please let us know |
Platform
iOS, iPadOS
Environment
Develop
Installed
CocoaPods
Version
8.32.0
Xcode Version
16b
Did it work on previous versions?
yes, 8.19
Steps to Reproduce
Update to xcode beta, update to 8.32.0
Expected Result
Compiles without breaking changes
Actual Result
We had to update Sentry-Cocoa to address a compilation failure in xCode 16.
Now we have two more errors:
SentryId *tid = [[SentryId alloc] initWithUUIDString:ns_trace_id];
Receiver 'SentryId' for class message is a forward declaration
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelWarning];
Use of undeclared identifier 'kSentryLevelWarning'
Are you willing to submit a PR?
Not familiar enough to say
The text was updated successfully, but these errors were encountered: