k0b0's record.

Computer Engineering, Arts and Books

swiftをコマンドラインで実行する

 swiftをコマンドラインで実行してみる。

1, コンパイルと実行

 「swiftc」というコマンドでコンパイル

$ swiftc -o sample.out sample.swift
$ ./sample.out