'assert.h' file not found

I'm trying to build C project with XCode 15.0, but always get error 'assert.h' file not found. I tried to clean and restart XCode, reinstall XCode and reboot, set different framework versions and project formats.

I found all entries of stdarg.h with Finder and made sure, that all directories, containing stdarg.h, contain also assert.h, but stdarg.h includes are resolved, assert.h - not. How could this be ? Many thanks for any help.

Ventura 13.6, M2, Command line tools version 2397

Post not yet marked as solved Up vote post of Farquaad Down vote post of Farquaad
868 views

Replies

So, just to be clear, you still see this problem when you create a new project from the macOS > Command Line Tool template?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • eskimo, thanks! I tried to create different projects and found, that availability of different header files depends on XCode project type. I'm testing USBDriver sample project and included ICScannerDevice.h, which seems to be application side class and not accessible for drivers. (assert.h is called from ICScannerDevice indirectly)

Add a Comment