I also had this error. But in my case, and I'm sure I will be here, I accidentally deleted main.m when I hit the delete key after the application crashed on the iPhone simulator.
After the crash, Xcode shows the main.m file, and when I hit delete, I accidentally deleted the main.m file from my project, as this is easy to do when the file name is highlighted, not the code in the detailed view.
Main.m is usually located in a group or folder with the names of the supporting files in the project file manager. I did not notice that this happened until he was able to build and run the next time, and then I had to reread the error message more carefully and see that he said that main.m was missing.
Thank you all for your contribution, but just in case, if someone in my position checks for red red files displaying the missing files and restoring them from the backup, if you have one.
Eddie.Power_AU Jun 12 '14 at 6:15 2014-06-12 06:15
source share