Return to site

C++ programming on mac

broken image
broken image

Or it will be found for one file but the other file it won’t be able to. If I create a header file and a cpp file, it goes away until I close Xcode and then the issue comes back. 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. Restarting my Mac sometimes fixes it but the behavior is just weird. Creating a new command line tool project and Xcode says it can’t find the iostream file. Tried to make a new project to see if something was up in my projects build settings but nope.

broken image
broken image

The weird thing is that the programs compile fine but for whatever reason Xcode says it can’t find the header file. Downgrading back to Mojave etc but yet the issue persists.Īsking on the Apple developer forums and a lot of people are experiencing the issue as well. Tried reinstalling both Xcode and the OS. Tried exporting the header file path in my zsh profile(shouldn’t need to do either since xcode comes packaged with these files).

broken image