Xcode is unable to determine the correct list of destinations when using a cross-platform target
| Originator: | tony | ||
| Number: | rdar://23966101 | Date Originated: | 20-Dec-2015 01:18 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode Version 7.2 (7C68) / OS X Version 10.11.2 (15C50) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: I realise this is unsupported behaviour, so perhaps file this under "Enhancement Requests" as well. Basically, I've configured my framework target to specify more than one value in `SUPPORTED_PLATFORMS`, including cross platform SDKs. I use this to allow building individual OS X, iOS, tvOS and watchOS binaries from a single Xcode target — this reduces maintenance as my source files don't get out of sync. This all works fine, but the destination list of any targets that depend on this framework also show all of the possible destinations (and shouldn't). Steps to Reproduce: 1. Open the attached Xcode workspace 2. Select the "Handle" scheme and check the available destinations — it should show both OS X and iOS destinations 3. Select the "HandleDemo-OSX" scheme and note the available destinations. Expected Results: Because I've explicitly set a single value (macosx) for `SUPPORTED_PLATFORMS`, I'd expect just OS X destinations here (and the inverse for my iOS scheme). Actual Results: Both iOS and OS X destinations are shown. Version: Xcode Version 7.2 (7C68) / OS X Version 10.11.2 (15C50)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
The attached files for this radar are available from: