{"id":21712093,"url":"https://github.com/sebj/swiftpm-xcode-project-licenses","last_synced_at":"2025-04-12T17:52:18.395Z","repository":{"id":149760772,"uuid":"241911269","full_name":"sebj/SwiftPM-Xcode-Project-Licenses","owner":"sebj","description":"Generate a single .json file with the licenses for all Swift Package Manager dependencies of an Xcode project","archived":false,"fork":false,"pushed_at":"2021-10-21T08:38:49.000Z","size":9,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T12:11:53.359Z","etag":null,"topics":["license","python","swift","xcode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-20T14:54:52.000Z","updated_at":"2024-03-26T15:25:38.000Z","dependencies_parsed_at":"2023-05-24T23:15:39.414Z","dependency_job_id":null,"html_url":"https://github.com/sebj/SwiftPM-Xcode-Project-Licenses","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebj%2FSwiftPM-Xcode-Project-Licenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebj%2FSwiftPM-Xcode-Project-Licenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebj%2FSwiftPM-Xcode-Project-Licenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebj%2FSwiftPM-Xcode-Project-Licenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebj","download_url":"https://codeload.github.com/sebj/SwiftPM-Xcode-Project-Licenses/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610407,"owners_count":21132920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["license","python","swift","xcode"],"created_at":"2024-11-25T23:33:43.673Z","updated_at":"2025-04-12T17:52:18.389Z","avatar_url":"https://github.com/sebj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Generate a single `.json` file with the licenses of all Swift Package Manager dependencies of an Xcode project**\n\n* Python 3\n* Swift Package Manager dependencies only\n* Tested with Xcode 13.0\n\n## Usage Example\n\nAs part of an Xcode target's 'Run Script' build phase:\n\n`$SRCROOT/generate-licenses.py --build-dir $BUILD_DIR --output-file $SRCROOT/licenses.json`\n\n### Additional Params\n\n- Use `-p $PROJECT_DIR/ProjectName.xcodeproj` to load the version and url info from `Package.resolved` in the project\n\n- Use `-w $PROJECT_DIR/WorkspaceName.xcworkspace` to load the version and url info from `Package.resolved` file in the workspace\n\n### Notes\n\n- If both the project (`-p`) and workspace (`-w`) arguments are specified, then the workspace (`-w`) will be ignored\n\n## Output Format\n\n- `libraryName` is the name of the repo and `name` is the name of the SPM Package as defined as defined in the dependency's `Package.swift`\n\n- `text` field will be missing if a dependency does not provide a license file at the root of the repo\n\n```json\n{\n    \"licenses\": [\n        {\n            \"libraryName\": \"\",\n            \"text\": \"\",\n            \"name\": \"\",\n            \"version\": \"\",\n            \"url\": \"\"\n        },\n        {\n            ...\n        }\n    ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebj%2Fswiftpm-xcode-project-licenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebj%2Fswiftpm-xcode-project-licenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebj%2Fswiftpm-xcode-project-licenses/lists"}