mono0926 / LicensePlist

A license list generator of all your dependencies for iOS applications
https://www.slideshare.net/mono0926/licenseplist-a-license-list-generator-of-all-your-dependencies-for-ios-applications
MIT License
2.43k stars 146 forks source link

Carthage & SPM Lockfiles not found with Tuist #220

Open stherold opened 1 year ago

stherold commented 1 year ago

Hey hey 👋

as we use Tuist they put the lock files in different directories as you can see below. Therefore the collection of licenses for Carthage and SPM does not work anymore.

Can you add optional parameters to the command for the Package.resolved and Carthage.resolved files? When the< are not specified the standard paths are assumed. That would help a lot :)

stherold commented 1 year ago

Actually we found a way of how it works. By specifying --cartfile-path and --package-path like below, all is fine:

 LicensePlist license-plist --output-path "$tmpDir" \
                            --suppress-opening-directory \
                            --github-token "${GITHUB_ACCESS_TOKEN}" \
                            --add-version-numbers \
                            --cartfile-path "./Tuist/Dependencies/Lockfiles/Cartfile" \
                            --mintfile-path "./Mintfile" \
                            --package-path "./Tuist/Dependencies/Lockfiles/Package.resolved" \
                            --xcworkspace-path "MyProject.xcworkspace"
hassan-ioki commented 1 year ago

For SPM, when I look more into this the inline method works like so: --package-path "..../Dependencies/Lockfiles/Package.resolved" But if I use the same line in my config file as: packagePath: "..../Dependencies/Lockfiles/Package.resolved", it doesn't work. It results in the warning Not found: Package.resolved and Not found: Package.swift. I tried with other config variables like packagePaths but doesn't seem to correspond. What is the variable name in the config? Can you help?

hassan-ioki commented 1 year ago

Any updates to this @mono0926 ?