Re: Using Configurations to build a single target for multiple platforms?
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