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      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to