Skip to content

'Cocoa Touch Class' template #6

@J-Swift

Description

@J-Swift

Hi! I've used custom templates I generated for a while now (at least a year or two), but just got a new computer and didn't carry over what I generated. When I went through to regenerate templates, I noticed that the script isn't able to make available a handful of templates that we generate.

I'm specifically concerned with the 'Cocoa Touch Class' option when generating a new file, but the others might be useful too. I attempted to track down the root cause, but didn't see anything that might be affecting this. The templates are generated just fine, it just seems that Xcode 7.2.1 doesn't seem to want to show the template, probably due to plist issues? The 'Cocoa Touch Class' plist is so minimal, that I can't think of what could be going wrong.

Directory listings:

$ ls /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Source/
C File.xctemplate
C++ File.xctemplate
Cocoa Class.xctemplate
Header File.xctemplate
Objective-C File.xctemplate
Objective-C new superclass.xctemplate
Playground Page.xctemplate
Playground with Platform Choice.xctemplate
Playground.xctemplate
Sources Folder Swift File.xctemplate
Swift File.xctemplate
UI Test Case Class.xctemplate
Unit Test Case Class.xctemplate

$ ls ~/Library/Developer/Xcode/Templates/File\ Templates/Custom/
C File.xctemplate
C++ File.xctemplate
Cocoa Class.xctemplate
Header File.xctemplate
Objective-C File.xctemplate
Objective-C new superclass.xctemplate
Playground Page.xctemplate
Playground with Platform Choice.xctemplate
Playground.xctemplate
Sources Folder Swift File.xctemplate
Swift File.xctemplate
UI Test Case Class.xctemplate
Unit Test Case Class.xctemplate

XCode Screenshots:

screen shot 2016-02-05 at 3 57 20 pm

screen shot 2016-02-05 at 3 57 29 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions