LicensePlist
A license list generator of all your dependencies for iOS applications
What is LicensePlist?
A license list generator of all your dependencies for iOS applications
Overview of LicensePlist
What it is
LicensePlist is a command-line tool that automatically generates a Plist file containing the licenses of all dependencies in an iOS application. It supports dependencies added manually via a YAML configuration file, as well as those managed by Carthage or CocoaPods. The generated license list can be integrated into the app's Settings.bundle, making the licenses visible in the Settings app.
Key features
- Automatically detects dependencies from Carthage (Cartfile), CocoaPods (Pods), Swift Package Manager (Package.swift), and Mint (Mintfile).
- Supports manual addition of GitHub-hosted libraries via a YAML config file.
- Outputs license data in multiple formats: Plist, HTML, Markdown, and CSV.
- Caches the last result and skips execution if no changes are detected, unless the
--forceflag is used. - Allows customization of output path, file prefix, and inclusion of version numbers or source URLs.
- Can use a GitHub token to avoid API rate limits when fetching license information.
- Provides options for silent or verbose logging, and color or monochrome output.
Use cases
- iOS developers who need to display open-source licenses in the Settings app to comply with license requirements.
- Teams that want to automate the license generation process as part of their build pipeline (e.g., in a Run Script build phase).
- Projects using a mix of dependency managers (Carthage, CocoaPods, SPM) and manually added libraries.
Getting started
Install via Homebrew (recommended): sh brew install licenseplist Or via CocoaPods: pod 'LicensePlist' After installation, run license-plist in the directory containing your Cartfile or Pods folder. The output will be placed in a directory named com.mono0926.LicensePlist.Output. Move the generated files into your app's Settings.bundle.
License and pricing
LicensePlist is open source and released under the MIT license. It is free to use.
Based on the project's public README and repository metadata.