0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

xcodeprojeにSwiftLintを導入する

Posted at

はじめに

xcodeに初めてSwiftLintを入れるので、メモとして記事を書いています。
他の初学者の方の参考になれば幸いです。

xcodeprojeにSwiftLintを入れるための前準備

  • CocoaPodsをinstallしておく
  • projectを作成しておく

SwiftLintの導入方法

  1. ターミナルを開き、cdコマンドで導入したいprojectがあるファイルに移動
  2. pod initコマンドでPodfileを作成
  3. 作成されたPodfileを開き、#Pods for ディレクトリ名 の下の行に pod 'SwiftLint'を入力
  4. ターミナルでpod installコマンドを入力
$cd ディレクトリ名
$pod init
// 作成されたPodfileにpod 'SwiftLint'を入力
$pod install
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?