Arduino on Xcode Project — Official Thread

I created a project in Xcode and everything works fine. I wanted to open it in the Arduino IDE and compile it, but the problem is since main.cpp is in the same directory as my .ino file, Arduino IDE opens up main.cpp as as tab. When I try to compile I get an error because main.cpp isn't needed by the Arduino IDE. Any suggestion as to getting around this?