xcodebuild chooses schemes randomly if there are multiple sharing the same name in a workspace
| Originator: | neocool2 | ||
| Number: | rdar://19222791 | Date Originated: | 11-Dec-2014 08:46 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.1 (6A1052d) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Running xcodebuild from the commandline with a workspace which contains multiple schemes of the same name, it is non-deterministic which scheme will be used. Steps to Reproduce: 1. Create a workspace in which two schemes have the same name 2. Use xcodebuild -workspace workspace.xcworkspace -scheme scheme multiple times Expected Results: There should be an error or a warning about the scheme name not being unique and in the latter case the same scheme should be used each time. Actual Results: A randomly selected scheme will be used. Regression: Xcode’s UI distinguishes the schemes by the Xcode project they reside in, making it possible for the user to resolve the conflict.
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!