A Swift package plugin implementation for LicensePlist
This project defines an Xcode plugin that leverages the current release of the official LicensePlist project.
- On the Package Dependecies tab, click on the
+
button to add a dependency.
- Enter
https://github.com/alandeguz/LicensePlistPlugin
into the search field, and click onAdd Package
.
- Because this a plugin (and not code intended for the app), no target will be listed in this dialog. Simply click on
Add Package
here.
- Select your Target, then go to
Build Phases
, expandRun Build Tool Plug-ins
.
- Click on the
+
button to bring up the plugin chooser dialog. Click onLicensePlist
thenAdd
.
- Copy the license-plist-config.plist file from this project to root directory of your project, and edit the values for your configuration. Note that the plugin code supports both hidden and not-hidden versions of the config filename.
.license-plist-config.plist
license-plist-config.plist
An example project is available from the ExampleApp repository.