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

John O'Reilly

07/28/2023, 5:26 PM
Anyone using latest XCode 15 beta 5? Was having issues so created new project using KMM plugin and see same issue when building in XCode.
I'll dig deeper (and maybe still something in my setup here) but fwiw this is error I'm seeing
Copy code
> Task :common:compileKotlinIosSimulatorArm64

> Task :common:linkDebugFrameworkIosSimulatorArm64
error: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:
    
    kotlin.native.cacheKind.iosSimulatorArm64=none
    
Also, consider filing an issue with full Gradle log here: <https://kotl.in/issue>
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 

> Task :common:linkDebugFrameworkIosSimulatorArm64 FAILED
error: Compilation finished with errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':common:linkDebugFrameworkIosSimulatorArm64'.
> Compilation finished with errors
I tried adding various gradle propertles suggested as test but in end still got following error
Copy code
ld: unknown options: -ios_simulator_version_min -sdk_version
hmm, see that reported in following as well https://developer.apple.com/forums/thread/733536
and looks like I missed same question here yesterday....I should have searched first! https://kotlinlang.slack.com/archives/C3PQML5NU/p1690435344184239
848 Views