sirrah
02/05/2019, 7:56 AMiosX64
target:
ld: '/Users/.../.konan/dependencies/libffi-3.2.1-2-darwin-ios_sim/lib/libffi.a(ffi64_x86_64.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture x86_64
Which seems to be a result of bitcode being enabled by default in Kotlin 1.3.20. So I've tried disabling it for all my iOS targets by adding the following to each target:
binaries {
framework {
embedBitcode('disable')
}
}
Unfortunately this doesn't resolve the error. I'd appreciate any suggestions on what to try next?svyatoslav.scherbina
02/05/2019, 7:59 AMsirrah
02/05/2019, 8:08 AMsvyatoslav.scherbina
02/05/2019, 8:29 AMembedBitcode
should fix the issue.
Have you tried to do a clean rebuild?sirrah
02/05/2019, 8:37 AM.gradle
dir and the build folders manually. But no change..gradle
, .konan
, llvm, xcode, but still no change.svyatoslav.scherbina
02/05/2019, 9:11 AMsirrah
02/05/2019, 9:14 AM./gradlew clean linkMainDebugFrameworkIosX64
ilya.matveev
02/05/2019, 10:49 AMcompilation.outputKinds
DSL method and another using the binaries DSL (binaries { framework { ... } }
). And disabling bitcode embedding affects only the framework created by the binaries DSL. So you can just drop using compilation.outputKinds
and use only the binaries DSL.sirrah
02/05/2019, 11:03 AMSam
02/05/2019, 12:22 PMsirrah
02/05/2019, 1:12 PMSam
02/05/2019, 2:12 PM