Hi there, facing the issue below with the XCode 26...
# multiplatform
s
Hi there, facing the issue below with the XCode 26 Error Summary Environment: - Kotlin: 2.2.0 - CMP: 1.10.0-alpha01 - Xcode: 26.0 (Build 17A324) - iOS SDK: iPhoneOS26.0.sdk Main Error:
Copy code
Exception in thread "main" java.lang.Error:
  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/usr/in
  clude/DarwinFoundation1.modulemap:288:8:
  error: module '_c_standard_library_obsolete' requires feature
  'found_incompatible_headers__check_search_paths'
Cascade Failures:
Copy code
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
  /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:23:10:
  fatal error: could not build module '_Builtin_float'

  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
  /Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:
  fatal error: could not build module 'CoreFoundation'
Stack Location:
Copy code
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:80)
  at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:567)
  at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
This appears to be a Kotlin Native incompatibility with the beta iOS SDK 26.0, Any guidance will be appreciated!
g
Upgrade kotlin to 2.2.20
👀 1
s
Specifically, this worked
2.2.20-RC2
For anyone future reference this version combination worked for me
Copy code
agp = "8.10.1"
android-compileSdk = "36"
android-minSdk = "24"
android-targetSdk = "36"
androidx-activity = "1.10.1"
androidx-lifecycle = "2.9.1"

kotlin = "2.2.20-RC2"
composeMultiplatform = "1.10.0-alpha01"

navigationCompose = "2.9.0-beta04"
kotlinSerialization = "1.9.0"
ksp = "2.2.20-2.0.2"

koin = "4.1.0"
c
Why the release candidate? 2.2.20 was release a week ago https://kotlinlang.org/docs/whatsnew2220.html
s
It worked with my setup, as otherwise, before this version, I had issues with the datetime and problems with the compose navigation library as well. composeMultiplatform = "1.10.0-alpha01"
t
in general SDK 26 is not yet officially supported
s
@tapchicoma, is there any timeline for when its support will officially drop?
t
in some of the next Kotlin releases. We are working on it right now cc @Artem Olkov
a
Yeah, we are hard at work to bring the support in the future releases. I don't have more public info at the moment.
CoreFoundation.h2310:
fatal error: could not build module '_Builtin_float'
Oh, that's a problem we fixed some time ago - https://youtrack.jetbrains.com/issue/KT-79571
132 Views