目录
目录README.md

Owl

Owl 🦉 is a command line tool that collects the licenses etc. of the Swift packages you use. It is intended to be called during the Xcode build process.

Installation

You can install owl either with Homebrew or from source.

Install with Homebrew

brew install qultist/formulae/owl

Install from source

rake install

Usage

Add the following Run Script Phase to your Xcode project. Make sure that the output directory exists!

if which owl >/dev/null; then
  owl -b "$BUILD_DIR" -o "$SOURCE_ROOT/AwesomeProject/Resources/Licenses"
else
  echo "warning: Owl is not installed, you can download it from https://github.com/qultist/owl"
fi

The BUILD_DIR and SOURCE_ROOT environment variables are provided by Xcode during build.

Owl will then create a packages.json file containing some information about the Swift packages and copy their license and notice files. Then it is up to you what you do with these files. You can have a look at the example to see how I integrate Owl and use the files.

License

Owl is released under the MIT license. See LICENSE for details.

关于
152.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号