All Projects → mattt → Xcode Licensed Templates

mattt / Xcode Licensed Templates

Licence: mit
Minimal Xcode Templates for Open Source Developers

Xcode Licensed Templates

Minimal Xcode Templates for Open Source Developers

Xcode means well with all of its file templates and autocomplete fanciness. But more often than not, it just gets in the way, and generates dozens of lines of code that you'll delete anyway.

These templates start your code off on the right foot: attribution and license in the header, followed by import statements and @interface / @implementation.

Select from your favorite open source licenses to be embedded in the header:

Is your license of choice missing? Feel free to send a pull request!

Installation & Usage

  • Create a new directory in /Library/Developer/Xcode/Templates/Application/File Templates called Licensed. As for Xcode 4.x & 5.x directory is: ~/Library/Developer/Xcode/Templates/File\ Templates As for Xcode 6.x & newer directory is: /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates
  • Copy the contents of the "File Templates" directory of this repository into Licensed.
  • Relaunch Xcode and select "File > New File", or use the ⌘N keyboard shortcut.
  • Select the "Licensed" category, then select the "Licensed Objective-C Class" template, and hit "Next".
  • Enter the name of your class and select the desired license.

Step 1

Step 2

Contact

Mattt Thompson

License

Xcode Licensed Templates is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].