Closed alexwhb closed 1 year ago
Sentry is an iOS dynamic framework - the code will be there at runtime - so the linker only needs to be told that to ignore the symbols for now (using the -U
option). You can do that in gradle by passing linker flags to the kotlin native compilation for the symbols you mentioned -
freeCompilerArgs += listOf("-linker-options", "-U _OBJC_CLASS_\$_SentrySDK")
and
freeCompilerArgs += listOf("-linker-options", "-U _OBJC_CLASS_\$_SentryBreadcrumb")
(Note: the $
is being escaped with an extra \
)
I'm using Kermit 1.1.3 with the co.touchlab:kermit-sentry plugin. Everything seems to work fine on Android, but on the native side it's not working properly. I've tried building for a real device as well and I get some other odd errors. It will sometimes build but then it gives
Here's what my error message looks like:
Seems like maybe the Sentry arm64 binaries are not being built properly or something?