Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Created September 8, 2022 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palaniraja/db7dc6637d9105b2375e0f07a8da8ad9 to your computer and use it in GitHub Desktop.
Save palaniraja/db7dc6637d9105b2375e0f07a8da8ad9 to your computer and use it in GitHub Desktop.
list all swift package manager dependencies used by project for copying without multiple clicks
/usr/libexec/plistbuddy -c "Print :" ~/Desktop/src/bitbucket/myprojectname.xcodeproj/project.pbxproj | grep XCRemoteSwiftPackageReference -A4
@palaniraja
Copy link
Author

E.g., running this /usr/libexec/plistbuddy -c "Print :" RedditOs.xcodeproj/project.pbxproj | grep XCRemoteSwiftPackageReference -A4 on https://github.com/Dimillian/RedditOS/ gives you


            isa = XCRemoteSwiftPackageReference
            repositoryURL = https://github.com/gonzalezreal/MarkdownUI
            requirement = Dict {
                kind = upToNextMajorVersion
                minimumVersion = 0.5.1
--
            isa = XCRemoteSwiftPackageReference
            repositoryURL = https://github.com/onevcat/Kingfisher
            requirement = Dict {
                kind = upToNextMajorVersion
                minimumVersion = 6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment