FelixHerrmann / swift-package-list

A command-line tool to get all used SPM-dependencies of an Xcode project or workspace.
MIT License
132 stars 15 forks source link

Support Tuist 4.x.x #112

Open anuragajwani opened 5 months ago

anuragajwani commented 5 months ago

New Tuist version no longer uses Tuist/Dependencies.swift but rather Tuist/Package.swift. In the current state running the command produces:

No build directory found in /Users/anurag.ajwani/Library/Developer/Xcode/DerivedData for ...

Command:

swift-package-list Tuist/Package.swift \
    --output-type settings-bundle \
    --output-path App/Resources
FelixHerrmann commented 5 months ago

Hey @anuragajwani, please take a look at #111 and let me know if that worked for you!

anuragajwani commented 5 months ago

Hi @FelixHerrmann yes that solved my problem thanks! Maybe it's worth adding a little section in the README? Let me know I'll be happy to contribute.

anuragajwani commented 5 months ago

Or alternatively reading in that the input is Tuist/Package.swift then assume the --custom-source-packages-path value to be Tuist/.build

FelixHerrmann commented 5 months ago

Thanks for the update @anuragajwani, I'll think about all of this!