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
Currently, the docs on https://docs.sentry.io/platforms/kotlin-multiplatform suggest CocoaPods is mandatory when integrating the library. There's even a section on SPM at the bottom that says we can use SPM for other things, but we still need CocoaPods for Sentry.
I assume your is Static = true is set in the framework? in that case it should work but not for tests because the linker is not configured there, that's the main issue. When you look at the cocoapods plugin source code they set up the linking automatically that's why it's suggested to set up both. If you don't setup linking you will get this error
Regardless we actually have new docs merged in today (not sure when they will be live) that suggests to use our gradle plugin that does all the linking so you're not tied to using only cocoapods. Please try it out
plugins { id("io.sentry.kotlin.multiplatform.gradle") version "0.10.0" }
Problem Statement
Currently, the docs on https://docs.sentry.io/platforms/kotlin-multiplatform suggest CocoaPods is mandatory when integrating the library. There's even a section on SPM at the bottom that says we can use SPM for other things, but we still need CocoaPods for Sentry.
Is this really true, though? We tried adding Sentry directly on iOS with SPM (https://docs.sentry.io/platforms/apple/install/swift-package-manager) and it seems to have worked fine. Looking at #118 and #108 it also seems to confirm this strategy would be fine.
It would be great to get clarity on this and get the docs updated if they're indeed misleading.
Solution Brainstorm
No response
The text was updated successfully, but these errors were encountered: