"Cannot create file" with new File Template

What would cause an error dialogue saying  "Cannot create file" to pop up when trying to use a newly-created File Template? The template is very simple static content, except for one use of $(NAME).

This happens in the EAP and current release.


It seems to be a #define line that causes the problem. Presumably it confuses AppCode's template replacement engine. Is there a way around this?


OK, I've found out how to fix this -- just escape the #define lines by prepending with a \ (backslash)


Please sign in to leave a comment.