Skip to content
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

Support for Tuist Projects #69

Closed
myak0v1ev opened this issue Nov 27, 2023 · 5 comments · Fixed by #80 or #94
Closed

Support for Tuist Projects #69

myak0v1ev opened this issue Nov 27, 2023 · 5 comments · Fixed by #80 or #94
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@myak0v1ev
Copy link

myak0v1ev commented Nov 27, 2023

Hello. Thanks for your great tool.

I have a suggestion to add some improvements to your tool.
For now, we can define the path to xcodeproj/xcworkspace because we need the Package.resolved file.
But for now, in iOS community, teams are using Tuist to configure their project. With using Tuist you don't have Package.resolved file like other standard projects. Instead, you have a .package.resolved file that creates by Tuist when you setup the project.

What do you think about it?

@FelixHerrmann
Copy link
Owner

Sounds like a thing to take a look at, I'm aware of Tuist but didn't know they are doing something different which needs to be handled separately. Can you explain why you've closed it?

@myak0v1ev
Copy link
Author

I found an easy solution to handle it.
After Tuist generated .package.resolved file, I can just move it to xcshareddata/swiftpm/Package.resolved before running swift-package-list command.

But if you see that it's the valid flow that can be handled by your tool it would be nice to add it.

@FelixHerrmann
Copy link
Owner

Gotcha, that sounds very manual tho, I'll take a look when I have some time!

@FelixHerrmann FelixHerrmann added the enhancement New feature or request label Nov 27, 2023
@FelixHerrmann FelixHerrmann self-assigned this Nov 27, 2023
@FelixHerrmann FelixHerrmann reopened this Nov 27, 2023
@FelixHerrmann FelixHerrmann changed the title Feature Request: add the ability to pass a custom path to Package.resolved file Tuist Project Dec 27, 2023
@FelixHerrmann FelixHerrmann added this to the 4.0 milestone Dec 27, 2023
@FelixHerrmann FelixHerrmann changed the title Tuist Project Support for Tuist Projects Dec 27, 2023
@FelixHerrmann FelixHerrmann linked a pull request Jan 1, 2024 that will close this issue
@FelixHerrmann
Copy link
Owner

Hey @myak0v1ev, as you can see I have added Tuist support which can be now tested on the release/4.0 branch. It works for me with the latest version of Tuist (3.37.0) on a simple project but it would be good if you can give it a shot via pulling the branch and install it from source.

For Tuist projects the entry point is the Project.swift file; there are some more changes in release/4.0 so make sure you specify the desired options. A good example could be swift-package-list Project.swift --output-type json --output-path ~/Desktop which will generate ~/Desktop/package-list.json.

@myak0v1ev
Copy link
Author

@FelixHerrmann Hey. Thanks. I'll try and give you feedback on it.

@FelixHerrmann FelixHerrmann linked a pull request Feb 4, 2024 that will close this issue
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants