XcodeGen
XcodeGen copied to clipboard
Autogenerate source directory
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?
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.