Template used for a specific file type, within Xcode
Questions tagged [xcode-template]
91 questions
130
votes
5 answers
How can I change the company name in the copyright template in Xcode 4?
Does anyone know how to change copyright in the templates for Xcode? That is, at the top of a new file it writes:
// Copyright 2011 {Company Name}. All rights reserved.
In previous Xcode versions you could change it by running the following…

woot586
- 3,906
- 10
- 32
- 40
39
votes
2 answers
Creating groups using a custom template xcode 8
I have successfully created an Xcode 8 template that will respond to these actions:
You already have a working project
You want to add your custom swift file to this project
Step by step, how to achieve that:
I have created…

OhadM
- 4,687
- 1
- 47
- 57
33
votes
4 answers
creating an XCode project with existing code
I'm in the process of porting a Linux application to Mac. I have different files with the source code that can get compiled and linked using the standard Makefile.
I'm going to be porting that code to Mac and continue writing code in C (sorry, no…

Mr Aleph
- 1,887
- 5
- 28
- 44
25
votes
6 answers
How does Xcode know who the project was "created by"?
Whenever a new file is added to the project, Xcode adds the following lines of comments on top.
// Created by {my name here} on 8/4/11.
// Copyright 2011 __{my company name here}__. All rights reserved.
How does it know what my name is? Does it…

James Raitsev
- 92,517
- 154
- 335
- 470
19
votes
4 answers
New iPhone App - How to Choose which Xcode Template to Use?
In general I'd like to understand which templates to use when, when I'm making new iPhone apps. Could anyone offer some guidelines, tips, rules-of-thumb?
Also, how much should I agonize over this? If I start off with the wrong one, can I add the…

Greg
- 45,306
- 89
- 231
- 297
13
votes
2 answers
How do I include a static library dependency in an Xcode Template?
I can include a framework like so in a TemplateInfo.plist file:
Frameworks
QuartzCore
OpenGLES
OpenAL
…

Chris Hill
- 1,914
- 1
- 16
- 24
13
votes
1 answer
How to change entire copyright notice template for Xcode?
I've found a few answers on how to change your company name, but is there any way to change the entire copyright template in Xcode?
For example:
Change :
(c) 2012 MyCoolCompany
to :
(c) 2012 MyCoolCompany, unauthorized reproduction is prohibited,…

Chris
- 1,037
- 15
- 26
12
votes
1 answer
Xcode template for file/folder, Not Project
I tried to create MVVM Template to creating file(s) (not project).
I want to add group (yellow folder) when I create the file, but I can't. When I created it, It create a folder (blue folder).
How can I achieve this?
I tried to use Node and…

Jefferson Setiawan
- 536
- 1
- 5
- 22
12
votes
3 answers
How to Change Default Copyright Template
Whenever I make a new file in xcode, it puts something like this at the top of the file:
// Copyright __MyCompanyName__ 2008. All rights reserved.
How can I change that to something useful?
Update: found the answer here.

Greg
- 45,306
- 89
- 231
- 297
12
votes
2 answers
Create empty group in Xcode 7 template
I try to create a Xcode template. I followed the question Xcode 4 template create empty group but it doesn't work anymore.
There is only a file called "Application" (without an extension).
TemplateInfo.plist
Nodes
…

ammerzon
- 998
- 1
- 13
- 30
11
votes
1 answer
How to update DetailView using MasterDetail Application Template
I'm new to using the split view for creating iPad applications. When I first create the project just using the standard MasterDetail Application template (Xcode 4.2), it creates a MasterViewController and a DetailViewController. The template has…

5StringRyan
- 3,604
- 5
- 46
- 69
11
votes
5 answers
How to replace the company name in the template headers in Xcode?
When Xcode creates a new file, there's always something like this in the header:
// Copyright 2009 __MyCompanyName__. All rights reserved.
How can I change that?

Thanks
- 40,109
- 71
- 208
- 322
10
votes
2 answers
Defining new XCode template tags on a per-project basis
It's well known that you can define the values for tags that are used in new file templates, as described at http://cocoadev.com/index.pl?ProjectBuilderTips.
So a typical template looks like this:
/*
* main.m
* «PROJECTNAME»
*
* Created by…

occulus
- 16,959
- 6
- 53
- 76
8
votes
3 answers
xcode basic game template
I am wondering if anyone knows of a open source or paid Xcode template.
It would be for a basic game, ( NOT COCOS2d ).
It would include simple items like profile management, load/save, Menu, Settings,
( perhaps include Openfeint/Game Center…

Chris Young
- 684
- 2
- 9
- 23
8
votes
6 answers
Why can't I see a Managed Object Class file template in Xcode?
I created a .xcdatamodel Managed Object Model file in Xcode. I selected that file in Groups & Files. Then I go to File > New... > and nowhere in the iPhone Templates / Cocoa Touch Class templates I see the "Managed Object Class" file template.
Does…

openfrog
- 40,201
- 65
- 225
- 373