https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

saket

12/12/2019, 3:45 AM
Replacing
iosX64("ios")
with
targetFromPreset(presets.iosX64, 'ios')
is resulting in a strange error that I can't figure out. I'm already using Xcode 11 (currently downloading 11.3 if that changes anything). Does this look familiar to anyone?
Copy code
> Task :shared:linkDebugFrameworkIos
error: Invalid record (Producer: 'LLVM8.0.0svn' Reader: 'LLVM APPLE_1_1100.0.33.8_0')
1 error generated.
e: Compilation failed: The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ command returned non-zero exit code: 1.
output:

 * Source files:
 * Compiler version info: Konan: 1.3.60 / Kotlin: 1.3.60
 * Output kind: FRAMEWORK

e: org.jetbrains.kotlin.konan.KonanExternalToolFailure: The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ command returned non-zero exit code: 1.
k

kpgalligan

12/12/2019, 4:10 AM
I feel like
targetFromPreset(presets.iosX64, 'ios')
is the old style. Why switch? Not sure what the error is, though.
s

saket

12/12/2019, 4:34 AM
I actually used
targets { fromPreset(presets.iosX64, 'ios') }
but wanted to keep it short here :p
k

kpgalligan

12/12/2019, 5:10 AM
Push a branch. Can poke around. JB is looking for gradle dsl feedback, just fyi, so take notes on what’s confusing/painful.
s

saket

12/12/2019, 5:30 AM
That will be super helpful. I've a PR open for this: https://github.com/saket/press/pull/22
i

ilya.matveev

12/12/2019, 6:22 AM
It looks weird because
iosX64()
and
fromPreset(presets.iosX64)
do exactly the same thing. Could you please run the build with
-i
Gradle option and provide the log? Let's see what arguments are passed to the compiler and what error is reported by clang.
3 Views