XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Autogenerate source directory

Open own2pwn opened this issue 4 years ago • 1 comments

I believe it'd be nice to have an option / autogenerate source tree root when you're defining new target. Am I missing an existing option?

own2pwn avatar Jun 24 '21 13:06 own2pwn

Maybe use a template?

I have one globally available on my machine for Swift Packages:

targetTemplates:
  SwiftPackage:
    type: framework
    platform:
      - iOS
      - macOS
      - tvOS
      - watchOS
    platformSuffix: " (${platform})"
    sources:
      - "Sources/${target_name}"

The takeaway point is the use of ${target_name} in templated sources.

VaslD avatar Feb 16 '22 14:02 VaslD