I have a large project with my source code organized in folders. I added the source files to the projucer project (in version 5.0.0 and 5.0.1) from those folder locations, and everything was fine. Now when I add a new file and save the Projucer project, the compiler can no longer find any file that isn’t in the /Source/ directory.
The Projucer can find the files just fine, it’s the compiler that isn’t being told where to look.
Edit: I can reproduce this error easily.
Create a command line project. In the /Source/ directory, create a new folder. Place any header in that folder.
In the projucer, add the header inside the folder to the project.
Save and open in Xcode.
#includethe header in main.cpp. Xcode sees the header added in the projucer in the project navigator.
Try and compile, it will fail saying “header.h cannot be found.”
My project has ~90 source files in a variety of directories, so this is a pretty annoying problem when my code compiled fine before updating to 5.0.2 and having the Xcode project overwritten.