Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 754 Bytes

File metadata and controls

40 lines (22 loc) · 754 Bytes

first swift command line tool

purpose

Build your first Command Line Tool through the Xcode user interface.

prepare

same as first swift app

steps

  1. (tap) Xcode icon > Create New Project > macOS > Command Line Tool

  2. in the Xcode editor

    New > Create New Project > macOS > Command Line Tool

test

run the project by terminal

  1. open the terminal

  2. cd the direction to find the main.swift

  3. swift main.swift

run the project in the Xcode

  1. command + R

reference

  1. first swift app

    https://github.com/LPenny-github/Notes2307/blob/main/macOS_Terminal/first_swift_app.md#prepare