GWLLint
将此内容添加到 Podfile 中 -
pod 'GWLLint', :git => 'https://github.com/GalaxyHydra/GwlLint.git'
然后运行 -
pod install
终端上的命令。
通过转到 项目导航>构建阶段>点击左上角的 '+' 并选择新建运行脚本>将此脚本粘贴进去 添加一个运行脚本 -
if which swiftlint >/dev/null; then
swiftlint --config ./Pods/GWLLint/GWLLint.xcframework/ios-arm64/GWLLint.framework/.swiftlint.yml --no-cache
else
echo "warning: SwiftLint not installed, 'brew install swiftlint' or download from https://github.com/realm/SwiftLint"
fi