XCode
从 App store 或苹果开发者网站安装 Xcode 。
紧接着,安装 Xcode command line tools,运行:
xcode-select --install
运行命令后,按照指引,你将完成 Xcode command line tools 安装。
译注
:
如果你不是一名 iOS 或 OS X 开发者,可以跳过安装 XCode 的过程,直接安装 Xcode command line tools 。安装完成后,你将可以直接在 terminal 中使用主要的命令,比如:make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp
等等。
如果你想了解 Xcode command line tools 包含多少可用的命令,可以到 /Library/Developer/CommandLineTools/
查看。以下为其中的命令列表:
- ar
- as
- asa
- bison
- BuildStrings
- c++
- c89
- c99
- cc
- clang
- clang++
- cmpdylib
- codesign_allocate
- CpMac
- cpp
- ctags
- ctf_insert
- DeRez
- dsymutil
- dwarfdump
- dyldinfo
- flex
- flex++
- g++
- gatherheaderdoc
- gcc
- gcov
- GetFileInfo
- git
- git-cvsserver
- git-receive-pack
- git-shell
- git-upload-archive
- git-upload-pack
- gm4
- gnumake
- gperf
- hdxml2manxml
- headerdoc2html
- indent
- install_name_tool
- ld
- lex
- libtool
- lipo
- lldb
- lorder
- m4
- make
- MergePef
- mig
- mkdep
- MvMac
- nasm
- ndisasm
- nm
- nmedit
- otool
- pagestuff
- projectInfo
- ranlib
- rebase
- redo_prebinding
- ResMerger
- resolveLinks
- Rez
- RezDet
- RezWack
- rpcgen
- segedit
- SetFile
- size
- SplitForks
- strings
- strip
- svn
- svnadmin
- svndumpfilter
- svnlook
- svnrdump
- svnserve
- svnsync
- svnversion
- unifdef
- unifdefall
- UnRezWack
- unwinddump
- what
- xml2man
- yacc