Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Enable iOS debug symbolication (#1411)
Browse files Browse the repository at this point in the history
Helps with debugging crashes
chrisbanes authored Jul 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7f7faa0 commit af675ec
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -41,14 +41,17 @@ class KotlinMultiplatformConventionPlugin : Plugin<Project> {
}
}

// Need to add linker flag for SQLite
// See: https://github.com/touchlab/SQLiter/issues/77
targets
.filterIsInstance<KotlinNativeTarget>()
.flatMap { it.binaries }
.forEach { compilationUnit ->
compilationUnit.linkerOpts("-lsqlite3")
targets.withType<KotlinNativeTarget>().configureEach {
binaries.all {
// Enable debug symbols:
// https://kotlinlang.org/docs/native-ios-symbolication.html
freeCompilerArgs += "-Xadd-light-debug=enable"

// Add linker flag for SQLite. See:
// https://github.com/touchlab/SQLiter/issues/77
linkerOpts("-lsqlite3")
}
}

configureSpotless()
configureKotlin()

0 comments on commit af675ec

Please sign in to comment.