You can still use xCode. On the most recent version, just open the project file, open the product menu, click on "archive", then click "export". After you click on export, select "save build products", then save it wherever you want it to. Open the folder, and there will be one folder inside it, and so on until there is an executable file, which opens in terminal. I hope this helps.
Yes . Eclipse is better than XCode (for C++ , java and ... programmers).
you can compile,build , debug and Run your Code just with one click !
Eclipse have a lot of features . Just Google it :)