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

David Everlöf

09/22/2023, 9:19 AM
Hello! I’ve read about the issues people have got with
ld: unknown options: -ios_simulator_version_min -sdk_version
and I am also one of them. I’ve changed kotlin version to
1.9.10
(which should fix it) and I’ve also applied
linkerOpts.add("-ld64")
in gradle. This did solve it when I run from Xcode with
./gradlew watch:embedAndSignAppleFrameworkForXcode
. However, this task still fails and can’t get it to work:
Task :database:linkDebugTestIosX64 FAILED.
Any kind soul that has any input on this?
j

Jon Bailey

09/22/2023, 10:53 AM
Did you apply the ld64 option at the same time as your on 1.9.10?
It should be removed once on 1.9.10
d

David Everlöf

09/22/2023, 10:54 AM
1.9.10
itself didn’t actually solve it for me
Adding
ld64
solved it for me for when building through Xcode
j

Jon Bailey

09/22/2023, 10:57 AM
I’m not sure then, it sounds like somewhere the Kotlin version is not being to 1.9.10. Have you searched the whole project for your previous Kotlin version string?
d

David Everlöf

09/22/2023, 11:01 AM
hm, yeah, will try searching for that
So seemed like the
Kotlin plugin för gradle
wasn’t updated, and that was it!
Thanks for the hints!
5 Views