I kept having this issue. make sure to delete the main.cpp file that is pre-populated. works then!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: