Anyone succeeded running kmp with latest xcode/too...
# ios
e
Anyone succeeded running kmp with latest xcode/toolchain tools and macos 26? I am running into issues for cinterop. Error log in 🧵
Copy code
Exception in thread "main" java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/usr/include/DarwinFoundation1.modulemap:288:8: error: module '_c_standard_library_obsolete' requires feature 'found_incompatible_headers__check_search_paths'
/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'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10: fatal error: could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/SubFrameworks/UIUtilities.framework/Headers/UICoordinateSpace.h:8:9: fatal error: could not build module 'Foundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:10: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/CoreImage.framework/Headers/CoreImageDefines.h:17:10: fatal error: could not build module 'CoreGraphics'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h:24:10: fatal error: could not build module 'CoreFoundation'
        at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:80)
        at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:15)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:567)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:307)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:243)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe(main.kt:1)
        at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
        at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:49)
        at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:23)
        at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:44)
f
There is some issues with the latest version of Xcode when using cinterop capabilities
Not the first, not the last time :)
e
True fact, but I still have faith in xcode, that one day it will work a bit more reliable 😀
f
Also, it’s important to keep the kotlin version up to date when doing iOS. The 2.2.20 seems to don’t have this issue, not sure
e
2.2.20 does not have SKIE support, that is another obstacle in my case
f
Yes me too !
e
Latest SKIE update is live 💌
474 Views