-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Build Error: Use of undeclared identifier 'SentryLog' #4339
Comments
Hello @sof9816, thanks for reaching out. Does this also happen to you when you start a new project and add Sentry? |
I manage to reproduce this twice: 1- New Xcode 16 project, adding https://github.com/getsentry/sentry-cocoa.git as dependency and all its 3 modules: (regular, dynamic, and swiftui). 2- With your Kotlin Multiplatform dependency (https://github.com/getsentry/sentry-kotlin-multiplatform). Again, with Xcode 16, and importing it as the docs say through Cocoapods Gradle plugin. |
Thank you very much for your response, I believe the problem is because you added all the targets. If I got it right you're using SPM for method number 1. Can you try adding just one of this two. |
That works surely. However, that's not what's blocking me from using Xcode 16, as I mentioned merely as an example. My main issue is the example #2, with Kotlin Multiplatform. I am not sure if that would mean two different fixes -- if so, I'm happy to create a new issue on its repo. |
No need to, we can keep track of it in here. @buenaflor Had you tried Xcode 16 already? Can you help us with this issue? |
I haven't tried xcode 16 yet, I'll have a look |
I'll try to get to this issue asap, I'm out for droidcon new york and the hotel internet is painfully slow for updating my mac and xcode.. |
This seems related: getsentry/sentry-react-native#4095 (comment) @sof9816 @leandrofavarin can you verify if adding this fixes the issue for you?
|
@kahest, after applying the changes in the |
@carloscuba thanks for testing and reporting back 🙏 |
which Kotlin version are you using for KMP? https://youtrack.jetbrains.com/issue/KT-71287 this may be related especially and |
Sadly it didn't change the result, and it seems like I got another error from this change:
The latest 2.0.20, haven't tried the upcoming 2.0.21-RC with the fix yet. |
@leandrofavarin could you try |
EDIT: I still get the same error ( |
For testing, in Kotlin cocopoads {
// add sentry-cocoa
} without the KMP dependency I want to find out if it is the KMP dependency that's breaking things or the cinterop through the cocoapods plugin |
It still fails without the KMP dependency. To try that, I basically reverted to not using KMP and split the configuration from being on Kotlin v2.1.0-Beta1, Sentry 8.36.0 with |
In that case I believe we unfortunately have to wait. See this issue, their target versions to support xcode 16 is |
I solved the issue by adding the following code in podFile
this is also present in the sentry docs |
Platform
iOS
Environment
Develop
Installed
CocoaPods
Version
8.36.0
Xcode Version
16.0
Did it work on previous versions?
Yes
Steps to Reproduce
Boom, not working
Expected Result
Boom, working
Actual Result
Are you willing to submit a PR?
No,
The text was updated successfully, but these errors were encountered: