getsentry / sentry-kotlin-multiplatform

Sentry SDK for Kotlin Multiplatform
MIT License
132 stars 19 forks source link

iOS setup instructions are out of date and do not work with the latest versions #269

Open oblakr24 opened 3 weeks ago

oblakr24 commented 3 weeks ago

Problem Statement

Basically, if you open a fresh IntelliJ project with Kotlin 2.0.20 and attempt to reproduce the iOS setup, the project fails to sync.

There are several issues, namely the cocoapods plugin definition needs to also be added at the project-leved build gradle along with its version, and the cocoapods {} block syntax has been changed:

https://kotlinlang.org/docs/native-cocoapods-dsl-reference.html#targets

Solution Brainstorm

No response

buenaflor commented 3 weeks ago

hey! thanks for pointing it out, right this moment I am working on improving the getting started docs, I'll look out for kotlin 2.0.20

oblakr24 commented 3 weeks ago

Thank you. I got this issue next: https://github.com/gradle/gradle/issues/20084 which is resolved by a workaround in gradle.properties: kotlin.apple.deprecated.allowUsingEmbedAndSignWithCocoaPodsDependencies=true

However I still get an error when building the project in XCode, do you want me to create a separate issue?

Image

buenaflor commented 2 weeks ago

yes please create a separate issue

oblakr24 commented 1 week ago

Created a separate issue: https://github.com/getsentry/sentry-kotlin-multiplatform/issues/278