LoginSignup
14

More than 3 years have passed since last update.

不要なコードを見つけるPeripheryを実行するターゲットをXcodeGenで追加する

Posted at

プロジェクトの不要なコードを見つけてくれるPeripheryというツールがあります。

このREADMEを読んでみると、Periphery用のターゲットを作って利用する方法が書いてあって面白そうだったのでXcodegenで生成するためのyamlを書いて見ました。

project.yml
aggregateTargets:
  Periphery:
    buildScripts:
      - script: periphery scan --project vear.xcodeproj --schemes App --targets App --format xcode

Xcode11から追加されたAggregate Targetsというターゲットタイプを使っているのが面白い点ですね。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14