Hey all,
I’ve been encountering this issue since I decided to upgrade to Catalina. I’ve tried asking on Apple developer forums and searching on stack overflow for a solution.
I use xcode as a student for my programming projects in C++. Ever since I downloaded 11.1 on Catalina I’ve been getting an issue that Xcode can’t find the c++ header files. I’ve tried using
. Tried exporting the header file path in my zsh profile(shouldn’t need to do either since xcode comes packaged with these files). Tried reinstalling both Xcode and the OS. Downgrading back to Mojave etc but yet the issue persists.
Asking on the Apple developer forums and a lot of people are experiencing the issue as well. The weird thing is that the programs compile fine but for whatever reason Xcode says it can’t find the header file.
Tried to make a new project to see if something was up in my projects build settings but nope. Creating a new command line tool project and Xcode says it can’t find the iostream file. Restarting my Mac sometimes fixes it but the behavior is just weird. For example if I create a new command line tool project the error message would go away but then if I create a new header file without a cpp file and try to include a library, it will show that the file can’t be found. If I create a header file and a cpp file, it goes away until I close Xcode and then the issue comes back. Or it will be found for one file but the other file it won’t be able to.
“Senior software developers” who lurk on the Apple forum tell me it’s not a bug and that it’s user error. I don’t understand how it’s not a bug if the issue happens on a brand new MacBook that I recently bought as well.
I would try other editors but vs code randomly spikes my cpu and has my fans blowing. CLion is a little sluggish. I guess I’ll try qt creator but still wanted to see if anyone else could help with fixing this issue.
Thank you.
I’ve been encountering this issue since I decided to upgrade to Catalina. I’ve tried asking on Apple developer forums and searching on stack overflow for a solution.
I use xcode as a student for my programming projects in C++. Ever since I downloaded 11.1 on Catalina I’ve been getting an issue that Xcode can’t find the c++ header files. I’ve tried using
Code:
xcode - -select
Asking on the Apple developer forums and a lot of people are experiencing the issue as well. The weird thing is that the programs compile fine but for whatever reason Xcode says it can’t find the header file.
Tried to make a new project to see if something was up in my projects build settings but nope. Creating a new command line tool project and Xcode says it can’t find the iostream file. Restarting my Mac sometimes fixes it but the behavior is just weird. For example if I create a new command line tool project the error message would go away but then if I create a new header file without a cpp file and try to include a library, it will show that the file can’t be found. If I create a header file and a cpp file, it goes away until I close Xcode and then the issue comes back. Or it will be found for one file but the other file it won’t be able to.
“Senior software developers” who lurk on the Apple forum tell me it’s not a bug and that it’s user error. I don’t understand how it’s not a bug if the issue happens on a brand new MacBook that I recently bought as well.
I would try other editors but vs code randomly spikes my cpu and has my fans blowing. CLion is a little sluggish. I guess I’ll try qt creator but still wanted to see if anyone else could help with fixing this issue.
Thank you.