LoginSignup
0
2

More than 1 year has passed since last update.

【SwiftLint】バージョンを指定しないと機能しない設定があるらしい

Posted at

はじめに

SwiftLintを使っていたら警告文が出てきたので原因と修正方法を記録しておきます。

警告文

スクリーンショット 2022-11-05 23.35.19.png

No Swift version was specified, so some formatting features were disabled. Specify the version of Swift you are using with the --swiftversion option, or by adding a .swift-version file to your project.

原因

Swiftのバージョンが指定されていない為、一部の書式設定機能が無効になっている

解決方法

ターミナル
cd プロジェクトフォルダ
ターミナル
touch .swift-version
ターミナル
open .swift-version
.swift-version
5.7

おわり

警告消えてスッキリ!

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