https://kotlinlang.org logo
#ios
Title
# ios
t

Truongnguyenptit

09/19/2023, 3:44 PM
Hey guy I upgraded macos Sonoma and iOS 17. run ios via Xcode but occur error: Showing Recent Issues The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1. output: -iphoneos_version_min has been renamed to -ios_version_min ld: unknown options: -sdk_version
Task sharedlinkPodDebugFrameworkIosArm64 FAILED
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'sharedlinkPodDebugFrameworkIosArm64'.
Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
* Get more help at https://help.gradle.org BUILD FAILED in 1m 54s Please let me know how to fix it
t

Truongnguyenptit

09/20/2023, 12:29 AM
thank you
g

Gaurav Prakash

09/20/2023, 3:40 AM
Is it resolved @Truongnguyenptit , if yes then how ?
j

Jacob Rhoda

09/20/2023, 3:50 AM
Upgrade to Kotlin 1.9.10
a

Adhish Lal

09/20/2023, 4:09 AM
@Jacob Rhoda How and from where? I think with the new Android Studio, it is automatically taken care of from Tools --> Kotlin --> Configue Kotlin Plugin Updates, We are failing to find anything related to build.gradle files related to Kotlin version as it was earlier.
t

Truongnguyenptit

09/20/2023, 6:04 AM
@Gaurav Prakash Now I'm trying upgrade.
g

Gaurav Prakash

09/20/2023, 6:21 AM
okay I already updated to 1.9.0 so i din't face it , for 1.9.0 do try to update compose too if you are using common UI
t

Truongnguyenptit

09/20/2023, 7:31 AM
I'm using multiplatform compose 1.5.0 didn't support 1.9.10 😞
trying compose 1.5.1 😛
a

Adhish Lal

09/20/2023, 11:14 AM
@Truongnguyenptit Did it work?
j

Jacob Rhoda

09/20/2023, 2:16 PM
I don’t know how your Gradle project is set up, but at my root
build.gradle
file, I have this block…
Copy code
plugins {
    //trick: for the same plugin versions in all sub-modules
    id("com.android.application") version Versions.androidPlugin apply false
    id("com.android.library") version Versions.androidPlugin apply false
    kotlin("android") version Versions.kotlin apply false
    kotlin("multiplatform") version Versions.kotlin apply false
}
So I bumped the version in
Versions.kotlin
to 1.9.10. Essentially, the “multiplatform” and “android” plugins were the ones that needed bumped.
If you just have constants then update the constants.
t

Truongnguyenptit

10/12/2023, 1:46 PM
@Adhish Lal yes, it works
1
14 Views