Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Apple use for XCode 4 template generation?

Xcode 4 completely changed the (project) template system. There's a lot more you can do now, but it comes at a price. Take a look in the TemplateInfo.plist files scattered around your /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application folder and you'll quickly lose the perspective. The new setup is very hard to modify, even harder to re-create. The writer of boreal-kiss.net has a real good post about the new structure.

One of the things he mentions struck me because I had the same thought while connecting the dots of the extensive use of inheritance in XML:

In fact it seems Apple creates them not by coding but by automatic generation tools.

My question is: Does someone know of such a tool? Is there a hidden helper utility in Xcode? Is it a download somewhere? Or has someone maybe created a tool like this to generate those TemplateInfo.plist XMLs?

It's a stretch, I know, but doing all those files by hand is a project of it's own, a hassle one shouldn't have to worry this hard about in a modern IDE.


UPDATE: While you can code the template files by hand, you can't rely on the templates you create to survive API changes by Apple with new releases of Xcode. I eventually wrote my own system for templating projects, by way of copying existing projects into new ones. This is done within a proprietary set of scripting instructions and a command line RubyGem called klipp. See: https://rubygems.org/gems/klipp

like image 208
epologee Avatar asked Mar 19 '11 12:03

epologee


People also ask

Does Apple use sketch?

Design apps quickly and accurately by using Sketch, Photoshop, and XD templates, guides, and other resources.

What build system does Xcode use?

The new building system introduced in Xcode 10 is written by Swift from scratch, and brings lots of improved performance and reliability.

What build system does Apple use?

The Xcode build system manages the tools that transform your code and resource files into a finished app. When you tell Xcode to build your project, the build system analyzes your files and uses your project settings to assemble the set of tasks to perform.

What UI library does Apple use?

Overview. The UIKit framework provides the required infrastructure for your iOS or tvOS apps.


1 Answers

I'd expect that a tool to help developers manage template libraries is something Apple will be releasing at some point but the priority has to be there if you want to see it anytime soon. Be sure to submit a bug report (https://bugreport.apple.com/) so that Apple knows that it is a concern. You could even reference all of the blog posts and forum posts which show the number of developers who want to manage templates with a tool.

like image 187
Brennan Avatar answered Oct 23 '22 12:10

Brennan