-
-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out empty auxiliary groups (#6142)
Partially resolves: #6141 - #6057 introduced a `Cache` group to help distinguish cached artifacts from system libraries - This didn't account for cases where the cache or cloud features aren't in use thus causing an additional `Cache` group to appear in all generated projects - As a short term mitation we can filter out empty "auxiliary" groups at the end of the project generation steps - This includes groups Xcode doesn't have by default including the `Frameworks` group which it only adds if a system library dependency is added Notes: - The `Product` group isn't treated as an auxiliary group as Xcode always has this group in the generated `pbxproj`, the UI however hides it when empty - A longer term solution would be extend the project/target API to allow the cache mapper to add groups instead of `TuistGenerator` having awareness about the cache feature Test Plan: - Generate the fixture `ios_app_with_tests` - Verify the `Frameworks` and `Cache` groups are no longer present - Generate the fixture `ios_app_with_sdk` - Verify the `Frameworks` group is still present (as there are system library dependencies) - Verify the `Cache` group is no longer present
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters