Xcode 4 Templates—How to add license to beginning of file?
// THIS IS A TEST
and nothing else, or the whole file but not the test comment.
I've tried what is shown in the screenshot above and dozens of other things. Help!
I figured it out, finally. As you can see in the image above, for every source file I have two rules, :comments and :content. In the Definitions, I set the :content of each to the rest of the file (all in a big string), and in the option i set just the comments of every file depending on whether the checkbox is checked or not. Since the definitions for the files are now strings, not paths, I had to keep the dictionaries for the header files just to keep the <key>TargetIndices</key> <array/>
so they don't get added to the Copy Bundle Resources build phase.
精彩评论