I am using a beta version of xcode but when I try ...
# multiplatform
j
I am using a beta version of xcode but when I try to build my iOS project I get this error. Where do I go to change this? -iphoneos_version_min has been renamed to -ios_version_min Complete error: The /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1. output: ld: unknown options: -ios_simulator_version_min -sdk_version
j
There is a new linker in Xcode 15, and KMP hasn't been updated for it. (I'm not sure why the new linker is incompatible with the arguments of the old one, it didn't break like this in beta 1 for me). You can revert to the old linker by setting the flag "-ld64" in linkerOpts in your build.gradle file.
j
Thanks. I also just noticed it with my latest update.
@Jon Bailey I don't have a build.gradle in iosApp directory. Should I be adding one for this?
j
it'll be in the folder of your shared code, wherever you configure the targets for kmp
this is my folder layout, and the line I added, it should be similar for you
probably worth trying to remove this in future Xcode betas maybe they will fix it so it's backwards compatible. Also at some point I guess KMP will be updated to support it
m
Where can I find a complete list for all linkers like this one =>
ios_simulator_version_min
207 Views