天天看点

为XCode 6 加入新建类模板

用XCode 6在改动之前用XCode 5 的代码的时候突然间发现 XCode 6已经把新建带有 .xib 类的模板给删去了。而项目的新需求中又要用到新建带有 .xib 的类(用惯了~),全部不得不又一次装了一下 XCode 5 ,把之前的类模板copy到了XCode 6。

详细做法:

cp -r /Applications/Xcode\ 5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File\ Templates/Cocoa\ Touch/Objective-C\ class.xctemplate /Applications/Xcode\ 6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File\ Templates/Source      

重新启动XCode 6,就能够看到这个图标

为XCode 6 加入新建类模板

又华华丽丽的出如今我们的面前了。愉快的编码去吧~