• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Configurations to build a single target for multiple platforms?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Configurations to build a single target for multiple platforms?


  • Subject: Re: Using Configurations to build a single target for multiple platforms?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 18 Jan 2016 18:25:34 -0800

I found the best solution for this, and I now owe an off-list benefactor a beer.

It’s pretty simple: to make a target cross-platform, modify its SUPPORTED_PLATFORMS build setting to list all the platforms (and their simulators). For example "macosx iphoneos iphonesimulator appletvos appletvsimulator”.

Once you do this, the target becomes buildable for all those platforms. In Xcode you can choose the platform from the scheme destination pop-up in the toolbar. With xcodebuild, use the -destination flag.

The binaries for the platforms stay separate — each goes into its regular product directory as usual, like “Debug-iphoneos”.

This has made my project so much cleaner!

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using Configurations to build a single target for multiple platforms?
      • From: Quincey Morris <email@hidden>
    • Re: Using Configurations to build a single target for multiple platforms?
      • From: "Dr. Michael Lauer" <email@hidden>
References: 
 >Using Configurations to build a single target for multiple platforms? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using Configurations to build a single target for multiple platforms?
  • Next by Date: Swift portability
  • Previous by thread: Re: Using Configurations to build a single target for multiple platforms?
  • Next by thread: Re: Using Configurations to build a single target for multiple platforms?
  • Index(es):
    • Date
    • Thread