fengsheng
09/04/2020, 2:15 PMgetStackTraceAddresses
to creat crash report in my iOS application. When I use debug build I can got a detailed report. But when I use release build, I just got some address in iOS no share code address. Any idea?kpgalligan
09/04/2020, 2:31 PMfengsheng
09/04/2020, 2:32 PM1.3.72
kpgalligan
09/04/2020, 2:33 PMfengsheng
09/04/2020, 2:35 PMfengsheng
09/04/2020, 2:48 PMiosArm64() {
binaries {
framework("iosArm64") {
freeCompilerArgs += "-Xg0"
if(it instanceof org.jetbrains.kotlin.gradle.plugin.mpp.Framework) {
isStatic = true
}
}
}
}
I’ve tried, but it’s not work for me.😢kpgalligan
09/04/2020, 2:57 PMif(it instanceof org.jetbrains.kotlin.gradle.plugin.mpp.Framework) {
isStatic = true
}
I think, anyway. You just need freeCompilerArgs += "-Xg0"
. Are you running groovy or kts scripts?fengsheng
09/04/2020, 3:02 PMkpgalligan
09/04/2020, 3:03 PMfengsheng
09/04/2020, 3:11 PMkotlin {
android()
android {
publishLibraryVariants("release", "debug")
}
iosX64("ios") {
binaries {
framework("iosX64") {
freeCompilerArgs += "-Xg0"
}
}
}
iosArm64() {
binaries {
framework("iosArm64") {
freeCompilerArgs += "-Xg0"
}
}
}
iosArm32() {
binaries {
framework("iosArm32") {
freeCompilerArgs += "-Xg0"
}
}
}
cocoapods {
......
}
sourceSets {
......
}
}
Are you talking about this?kpgalligan
09/04/2020, 3:30 PMframework
in the binaries section. They will conflict. Off hand I’m not sure how you’d apply the compiler args in that context.kpgalligan
09/04/2020, 3:31 PMfengsheng
09/04/2020, 3:38 PM