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