I would like to run my Objective-C code inside Xcode, but not for the iPhone or Mac. I want to write programs to solve the challenges from Project Euler, without starting up the simulator. I am using NSLog() to display my results, and that’s all I need.
How can I do this? I checked everywhere but all I found were questions about how to run Objective-C outside of Xcode and so on.
If I’m understanding right, you want to create a “Command-Line Tool”, one of the options under the Mac OS X templates:

That’ll give you a project containing just one code file, main.m:
It’s linked against Foundation and compiled as ObjC, so you can do pretty much anything you would do in a GUI app (except the GUI parts, of course), including creating your own classes.
main()is the entry point for your program; just put whatever you want to do inside that@autoreleasepoolblock.