NoteDelight icon indicating copy to clipboard operation
NoteDelight copied to clipboard

Unable to build the project in Xcode

Open rakeshashastri opened this issue 7 months ago • 1 comments

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.

Build iosApp_2025-04-30T10-06-44.txt

rakeshashastri avatar Apr 30 '25 05:04 rakeshashastri

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.

softartdev avatar Apr 30 '25 13:04 softartdev