Execution outside Xcode


#1

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


#2

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


#3

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.


#4

Thanks