Hey guy I upgraded macos Sonoma and iOS 17. run i...
# ios
t
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
thank you
g
Is it resolved @Truongnguyenptit , if yes then how ?
j
Upgrade to Kotlin 1.9.10
a
@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
@Gaurav Prakash Now I'm trying upgrade.
g
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
I'm using multiplatform compose 1.5.0 didn't support 1.9.10 😞
trying compose 1.5.1 😛
a
@Truongnguyenptit Did it work?
j
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
@Adhish Lal yes, it works
✅ 1