Ioana Stoicescu
07/13/2023, 10:50 AMThe /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: -U and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
when I build the KMP module. I am seeing this issue only when I add the gradle plugin id("co.touchlab.crashkios.crashlyticslink")
. Any ideas on how to fix this? I am fairly new to iOS development.Alex Azarov
07/13/2023, 1:05 PMIoana Stoicescu
07/13/2023, 1:21 PMhfhbd
07/13/2023, 1:29 PMIoana Stoicescu
07/13/2023, 2:41 PMkpgalligan
07/13/2023, 2:51 PMcrashlyticslink
plugin just adds liker flags that let the build continue without resolving the Crashlytics iOS symbols. That last sentence was probably confusing if you don't do a lot of iOS development 🙂 Basically, CrashKiOS uses cinterop to call the Crashlytics iOS library, but that almost always gets added by the app in Xcode, not in the Kotlin code. However, the compiler wants to resolved everything the code needs, so it'll fail with a link issue. cinterop and 3rd party libraries are complex, summary.Ioana Stoicescu
07/13/2023, 2:53 PM