Execution outside Xcode


How do we get these examples saved so they may be executed without using Xcode to compile & run?
Warren Trammell


You mean you want to compile and run them manually from the command line?


Let’s say your executable is called Foo. In the Product menu, choose Build For -> Archiving.

In the file tree view on the left, right-click on the Products -> Foo.app. Choose View In Finder from the menu that appears.

There will be two directories: Debug (not what you want) and Release (what you want). The app Foo.app in the Release is properly linked and stripped for use anywhere. You can even email it to your mother and she can run it.