• 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
Using Configurations to build a single target for multiple platforms?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Configurations to build a single target for multiple platforms?


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

The framework I work on needs to build for an increasing number of platforms — it’s always supported both iOS and Mac OS, but I’m in the process of adding tvOS, and I bet pretty soon some customer will want it on watchOS.

I’m dealing with tvOS right now by duplicating the iOS targets and changing their SDK from iOS to tvOS. But then I also need to change their product names or build directories so they don’t overwrite each other. And there are multiple levels of dependencies, so if iOS target B depends on target A, then when I make a tvOS B I have to change its dependency to tvOS A. This is a mess and really fragile!

I’m wondering if it’s feasible to make a single target support multiple platforms by using configurations. I’m used to just having configurations for Debug and Release, but in principle I could make Debug-iOS, Debug-tvOS, Debug-MacOS, etc. and override the architecture-related build settings differently in each one, right?

This is sounding promising, but before I spend a lot of time tinkering with my very complex project file, it’d be a great help to know if anyone else is either doing this successfully, or has tried and given up. (Or knows a completely different mechanism that works well.)

Thanks!

—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: Jens Alfke <email@hidden>
    • Re: Using Configurations to build a single target for multiple platforms?
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Adding dynamic library soft links
  • Next by Date: Re: Using Configurations to build a single target for multiple platforms?
  • Previous by thread: Re: How to convert a framework target to a static library target?
  • Next by thread: Re: Using Configurations to build a single target for multiple platforms?
  • Index(es):
    • Date
    • Thread