Build a Xcode project. OS X > Application > Command Line tool because we just want to play the Swift language feature does not do UI.
Product name; Example
ORG Name:cyper
ORG Id:me.cyper
Bundle Id:me.cyper.example
Saved on the desktop.
Example > Example.xcodeproj
Example > Example/main.swift
Select Products>example, right identity and type, type select Unix-executable to see the full path of the resulting executable file
/users/cyper/library/developer/xcode/deriveddata/example-ajcwintjwwixdreqjjijwrzqriom/build/products/debug/ Example
This hello world file is about 5M
? Debug $ pwd/users/cyper/library/developer/xcode/deriveddata/example-ajcwintjwwixdreqjjijwrzqriom/build/ Products/debug? Debug $ lltotal 10904-rwxr-xr-x 1 cyper staff 5.3M Oct 20:03 exampledrwxr-xr-x 4 cyper Staff 136B Oct 20:00 example.swiftmodule/? Debug $./examplehello, world!? Debug $
Swift Notes III using Xcode