New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-8204] Sort targets in SwiftPM generated Xcode project #4772
Comments
CC @aciidb0mb3r what do you think? |
Definition order makes sense when there is a single package but not sure what to do for artifacts of the package dependencies. |
When there are multiple packages, I think the user is first and foremost interested about the targets of his own package. So a sensible order could be:
|
SGTM |
Comment by Matthew Seaman (JIRA) CC @aciidb0mb3r Assuming this change doesn't need to go through the proposal process, should it be guarded by a specific Swift tool version? …or perhaps a --sort-targets-alphabetically flag. |
Comment by Matthew Seaman (JIRA) Oh I see this SR is only referring to targets, not groups representing them. Do you think sorting the groups in the same way makes sense? As a Swift PM user, I'd love to see groups sorted by definition order, but this would be a more significant change. |
Comment by Matthew Seaman (JIRA) |
Attachment: Download
Additional Detail from JIRA
md5: 4ee34e0c19a6d8c18d35df90f6f79007
Issue Description:
Currently, SwiftPM sorts targets in the generated Xcode project alphabetically. To be more readable, it might make sense to sort them in the same order they are defined in the Manifest:
Products
Targets
Test Targets
Question: should we sort them alphabetically by category or by the definition order?
The text was updated successfully, but these errors were encountered: