最近項目中需要新建一個工具類(category)又想起Xcode自從6.0開始就移除了Empty Application、category、protocol等模板,想要新建這些類型的文件或者工程需要費點兒勁,閑來再寫一下,總有人需要。。。。。。
1、下載需要的材料 (下載)

templateFile
這里分別是新建Xcode空工程,類目,延展和協(xié)議文件的模板
2、在Finder中打開應(yīng)用程序列表,選中Xcode
如下圖,顯示包內(nèi)容后,command + shift + G,在彈出的路徑輸入框中貼入下邊的路徑
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application

showcontent

go
3、把之前下載的材料,結(jié)合自己需求添加到Application文件夾中
更改這個文件的時候需要權(quán)限,輸一下密碼就行了
如下圖

template
4、重啟Xcode

template

template
------------ 完 ------------