5

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

SreekanthI
  • 393
  • 3
  • 13
  • tried creating IDEWorkspaceChecks.plist in the xcshareddata in .swiftpm/Xcode/xcshareddata folder still no luck. used https://help.apple.com/xcode/mac/9.0/index.html?localePath=en.lproj#/dev91a7a31fc doc. – SreekanthI Jun 30 '21 at 05:24
  • Does this answer your question? [Changing the default header comment license in Swift Package](https://stackoverflow.com/questions/67614785/changing-the-default-header-comment-license-in-swift-package) – Cristik Aug 10 '23 at 19:58

1 Answers1

3

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.

Loz
  • 2,198
  • 2
  • 21
  • 22