From 4c47c2303319c5e8cb3b9a196cf0f931b465d2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=98=8A=E7=87=83?= <11169285@MacBook-Air-2.local> Date: Thu, 3 Sep 2026 16:14:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=89=93=E5=8C=85=20SwiftLint=20--path=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + project.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be7236d..98db06a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). ### Fixed - CI unit-test 卡住:为 job 与 step 增加 `timeout-minutes`,避免单个 Package 挂起导致无限等待;OCRCore 在 CI 上跳过依赖真实 Vision OCR 的集成测试(无头 runner 上 Vision 首次初始化可能挂起),本地仍完整运行(`scripts/test.sh`) +- 本地打包失败:SwiftLint 0.65+ 移除 `--path` 选项,`project.yml` 的 SwiftLint build phase 改用位置参数(新旧版本均兼容) ## [0.6.1] - 2026-09-02 diff --git a/project.yml b/project.yml index 77e5850..801a4b9 100644 --- a/project.yml +++ b/project.yml @@ -87,7 +87,7 @@ targets: basedOnDependencyAnalysis: false script: | if which swiftlint > /dev/null; then - swiftlint lint --config "${SRCROOT}/.swiftlint.yml" --path "${SRCROOT}/App/SnapGlass" + swiftlint lint --config "${SRCROOT}/.swiftlint.yml" "${SRCROOT}/App/SnapGlass" else echo "warning: SwiftLint not installed" fi