NoteDelight
NoteDelight copied to clipboard
Unable to build the project in Xcode
I'm unable to build the project in Xcode 16.3. Tried the master branch, and the previous ios/1.8 tag as well.
PFA the build error attached.
Hi Rakesha,
Thanks for reporting this issue and providing the build log.
I looked through the log, and the key error seems to be this:
> Task :core:data:db-sqldelight:cinteropSQLCipherIosArm64 FAILED
Exception in thread "main" java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/c_standard_library.modulemap:313:8: error: module '_stddef' requires feature 'found_incompatible_headers__check_search_paths'
This specific error (module '_stddef' requires feature 'found_incompatible_headers__check_search_paths') often indicates an incompatibility between the version of Kotlin used in the project and the newer SDKs included with Xcode 16.3 (specifically, the iOS 18.4 SDK in this case).
This is a known issue, tracked here: https://youtrack.jetbrains.com/issue/KT-76460
The recommended solution is to update the Kotlin version used in the project to 2.1.21-RC or a newer compatible version.