Create Custom Header in Swift Package. no IDETemplteMacros.plist exists in Swift Package

Viewed 462

In Xcode Project we have IDETemplteMacros.plist to set the header for every file we create it takes that content with copy rights text. In Swift Package we don't have any option to create such header

1 Answers

The solution is to place IDETemplateMacros.plist in the xcshareddata folder of the package's generated workspace within the .swiftpm folder. eg.

<PackageFolder>/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDETemplateMacros.plist

This works for me in Xcode 13.0.

Related