I have created a IDETemplateMacros.plist with the following
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string> ___COPYRIGHT___</string>
</dict>
</plist>
I have placed this at /Users/<User>/Library/Developer/Xcode/UserData/IDETemplateMacros.plist
. This works well for xcode projects that I run/build from a .xcodeproj
.
Unfortunately, I also work on a library which doesn't have an associated .xcodeproj
and is only built and tested but never compiled. When I create new files in that project, it seems like xcode recognizes that it shouldn't use the standard header -- but instead of using the above, it only includes at the top an empty comment line:
//
Any thoughts on how to get this macro working in developing libraries locally which don't have .xcodeproj
's associated to them?
Running Xcode 13.1