7

What happened to header files after Catalina update? I am getting the error "assert.h:No such file or directory". In Mojave this issue was solved by using macOS_SDK_headers_for_macOS_10.14.pkg package. Is there any such package for 10.15 or any other solution? Is anyone else facing this issue?

  • Any updates or solution? – Laura Nov 4 '19 at 21:31
  • Might be related to stackoverflow.com/questions/58278260/… – Laura Nov 5 '19 at 18:18
  • I ran : xcode-select --install. That seemed to have fixed the problem for me. . – Sanjay Nath Nov 8 '19 at 10:16
  • @SanjayNath please add that comment as an Answer. – pkamb Nov 18 '19 at 8:44
4

Recently I also updated to Catalina and got the same problem. As it was mentioned there is no equivalent package macOS_SDK_headers_for_macOS_10.14.pkg for Mac OS 10.15 which solves the problem for Mojave.

There are several things you can do which worked for me.

  1. Always try

    xcode-select --install
    
  2. Some answers recommend to agree with the license. I'm not sure if it's helpful but I did it anyway

    sudo xcodebuild -license
    

    and type agree.

  3. Apparently you can find these headers in a /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include directory. So you can add it to some environment/build system variable.

| improve this answer | |
  • 2
    How can we tell the OSX to look for the common headers in this new directory? Normally you do not need to specify where the headers are. I use CLion and never had to do it – Hector Esteban Mar 23 at 16:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .