Alex Azarov
07/10/2023, 9:48 AMThe /Applications/Xcode-15.0.0-beta.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: ignoring duplicate library '-ldl'
ld: unknown options: -ios_simulator_version_min -sdk_version
error: Compilation finished with errors
This is reproducible with https://github.com/Kotlin/kmm-basic-sample and doesn’t happen on beta 2.Alex Azarov
07/10/2023, 9:57 AMJon Bailey
07/10/2023, 6:21 PMJon Bailey
07/10/2023, 6:23 PMAlex Azarov
07/11/2023, 8:51 AMJon Bailey
07/11/2023, 8:56 AMJon Bailey
07/11/2023, 8:56 AMAlex Azarov
07/11/2023, 1:08 PMembedAndSignAppleFrameworkForXcode
if (System.getenv("XCODE_VERSION_MAJOR") == "1500") {
linkerOpts += "-ld64"
}
Seems to work fine, except for cases when I need to build directly from command line e.g. shared:assembleSharedReleaseXCFramework
, but I don’t use it muchJon Bailey
07/11/2023, 4:18 PMXCODE_VERSION_MAJOR=1500 ./gradlew shared:assembleSharedReleaseXCFramework