yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.01k stars 818 forks source link

How to specify platform settings for multiplatform target? #1364

Open jsorge opened 1 year ago

jsorge commented 1 year ago

If I have an application project with targets specified below:

targets:
  MyApp:
    sources: MyApp
    platform: [iOS, macOS]
    deploymentTarget:
      iOS: 17.0
      macOS: 14.0
    type: application
    settings:
      base:
        SWIFT_VERSION : 5.0

How can I add a platform-specific build setting? For example, on the Mac's debug configuration I want to use manual code signing (so that I can build my app in a VM and use provisioning profiles to enable the build and run) but use automatic signing for iOS's debug configuration?