-
Notifications
You must be signed in to change notification settings - Fork 820
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
Add ability to use multiple groups for local Swift Package #1118
Comments
@yonaskolb, Hi! Is this a desired feature? I think I could help and make a PR if you don't mind. I kind of need that too now :) |
I'm not sure what you mean. Do you mean the |
As I understand, it's about the And when I define the package dependency from path it will create intermediate folders for me packages:
AlamofireNetworkClient:
path: Packages/AlamofireNetworkClient
AppEnvironment:
path: Packages/Group2/AppEnvironment
...
Something like: |
Exactly |
@hainayanda have you tried setting the group via the optional parameter added in #1175? You might be able to do something like packages:
AlamofireNetworkClient:
path: Packages/AlamofireNetworkClient
group: Packages/Group1
AppEnvironment:
path: Packages/Group2/AppEnvironment
group: Packages/Group2
... See documentation. |
Sorry, but it's not working for me. When I set the package like
or
or
and regenerating the project, the groups are not created, and the package is absent. @John-Connolly, could you please guide me on how to use the configuration? I have |
Already tried that, but it does not work if the group is logical. Is that intentional by design? |
Hi @hainayanda Did you find a solution ? |
Hi @himammz it's working, but with some limitations as I mentioned before, it will not work if you want the group to be logical. |
By default, any Swift Package added via xcodegen will be populated into one group named "Packages". It's not always ideal since in my case, I have 2 groups of packages:
Using the current xcodegen will put all the packages in the same group and will create confusion for my team. I am using git modules because I need to have access to shared packages and the ability to fix and update them right away instead of updating via Swift Package Manager manually.
Can xcodegen have the ability to configure multiple groups for packages instead of using the default Packages group?
The text was updated successfully, but these errors were encountered: