Generate a license acknowledgements page for your app from your SwiftPM dependencies.
App Settings | Acknowledgements | License Details |
---|---|---|
|
|
|
Currently the only supported installation method is cloning and installing. The command will be added to /usr/bin/local
.
git clone https://github.com/natesabrown/swiftpm-settings-acknowledgements
cd swiftpm-settings-acknowledgements
sudo make install
In your app's root directory, run:
swiftpm-settings-acknowledgements
Drag the resulting Settings.bundle
into your .xcodeproj
.
(Option) Path to the directory containing the .xcodeproj
.
If not provided, this program will look for the first .xcodeproj
in the directory.
Default: nil
.
(Option) Add a GitHub token to help prevent rate limiting when fetching license information from GitHub.
If no --package-cache-path
is specified, this package will look to GitHub to get license information. To guard against rate limits from their API, you can provide an access token. For guidance, see generating a personal access token (GitHub).
Default: nil
.
(Option) Specify the languages to localize the "Acknowledgements" text for. If multiple, separate by commas (e.g. "en,es,ja").
Available languages:
en
: Englishes
: Spanishfr
: Frenchkn
: Kannadaja
: Japanesezh_Hans
: Chinese, Simplified
Default: en
.
(Option) Where the Settings.bundle
should end up.
If not provided, the bundle will be created in the current directory.
Default: nil
.
(Option) Provide a custom path to your Package.resolved
file.
If provided, this program will look through the package directory for licenses instead of contacting the GitHub API.
To find the package cache for your project, option-click on a package listed in "Package Dependencies" in Xcode and select "Show in Finder".
Default: nil
.
(Option) Provide a custom path to your Package.resolved
file.
If not provided, this program will look for the file within your directory's .xcworkspace
.
Default: nil
.
(Flag) Print extra details during program execution.
Default: disabled.
This project was inspired by LicensePlist by mono0926.