Can't create new Objective-C class

I can't create new Objective-C class in my AppCode 3.1.

This is how I create a new class:


It shows mesage like this:

Velocity Error
Error pasing file template: Unable to find resource 'Objective-C File Header.m'


My XCode version is 6.1.1
My MacOSX is 10.10.1

Anyone help?

Comment actions Permalink

If you select "Edit File Templates..." from the context menu (see screen below), what do you see in the file template list?

Image 2014-12-23 at 11.34.37 AM.png

Here's what I see.  If you have a corrupted or modified (or empty) version of the Objective-C class file template, you can try hitting the revert button (circled below).

Screen Shot 2014-12-23 at 10.47.38 AM.png

If that isn't possible or doesn't fix the issue, then you might want to try redownloading / reinstalling AppCode, since those templates are packaged in with the app bundle AFAIK.

Comment actions Permalink

Thanks Daniel, It works!!

I found that I edited my templates in previous version of AppCode, when I revert it to default state everything is ok!

Comment actions Permalink


Thanks for the reply, that solved the same problem I just had.

For what it's worth, it appears my templates were edited by changing the style preferences in AppCode.  I'm not sure if this consistently leads to a bug during refactoring.



Please sign in to leave a comment.