-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Xcode report concurrency warnings on the Modules package #23838
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
Apple recommends to work in waves: enable the flags, fix some issues, disable the flags. Continue until there are no more warnings/errors and the flags can be enabled permanently. |
I'm only suggesting to do it the other way around: fix warnings, then enable the flags in |
c38b7e5
to
c79e812
Compare
@kean I have removed |
.library(name: "XcodeTarget_StatsWidget", targets: ["XcodeTarget_StatsWidget"]), | ||
.library(name: "XcodeTarget_UITests", targets: ["XcodeTarget_UITests"]), | ||
] | ||
static var products: [Product] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous version seemed a bit more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swift compiler reports a concurrency check error on the previous version. I can't remember the exact error message, but it's related to the variable being a global variable.
This PR will introduce about 100+ more warnings. I'll "address" (probably just
@unchecked Sendable
) them in follow up PRs.As the warnings gone, I'll remove the compiler flags, which means compiler will report errors if new code violates concurrency rules.
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: