Main.h not found

I’ve downloaded a bunch of projects off Github and placed them in the myApps folder as one normally should but I keep getting an error that main.h is not found.
I even tried making new projects and replacing the src files but that didn’t work!
P.s I am using Xcode

can you try updating the project via the project generator? use the import button and choose the folder of the project you want to update.