Build for debug is just press on the PLAY symbol, but I don\'t know how to Build for distribution/release?
You can use command line tool to build the release version. Next to your project folder, i.e.
$ ls ... Foo.xcodeproj ...
Type the following build command:
$ xcodebuild -configuration Release