Skip to content

Commit 44d61a3

Browse files
authored
[ci] Exclude packages using deprecated APIs from the pod linter check (#9746)
Xcode 26 is showing deprecation usage as warnings: flutter/flutter#170437. These warnings are causing `podspec-check` to fail as these warnings are being treated as errors. To unblock testing Xcode 26 in CI, exclude the existing `exclude_xcode_deprecation` packages from the podspec check command. Currently used here: https://github.com/flutter/packages/blob/83ae18a4faf6cbd18138d6fe7a20859a28b84166/.ci/targets/ios_platform_tests.yaml#L21 https://github.com/flutter/packages/blob/83ae18a4faf6cbd18138d6fe7a20859a28b84166/.ci/targets/macos_platform_tests.yaml#L18 This isn't a perfect solution, as the podspec check will find more issues than just deprecation warnings (Swift 6 warnings, [for example](flutter/flutter#170439)), and this will prevent any warnings being discovered for these packages. However, I believe it's a better solution than #9428 (not treating warnings as errors for any package) because NEW regression warnings in all other packages can be caught in presubmit. Closes #9428 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 6f487d4 commit 44d61a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/targets/macos_repo_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ tasks:
1313
always: true
1414
- name: validate iOS and macOS podspecs
1515
script: .ci/scripts/tool_runner.sh
16-
args: ["podspec-check"]
16+
args: ["podspec-check", "--exclude=script/configs/exclude_xcode_deprecation.yaml"]
1717
always: true

0 commit comments

Comments
 (0)