rules_xcodeproj
rules_xcodeproj copied to clipboard
Bug: Thread sanitizer broken with Bazel 8.0.0
Description
Enabling ThreadSanitizer in Xcode with Bazel 8.0.0 produces the following error:
ERROR:
--swiftcopt=sanitize-thread:: Unrecognized option:--swiftcopt=sanitize-thread
Reproduction steps
Enable thread sanitizer in the Xcode UI or in the rules_xcodeproj definition with:
xcschemes.diagnostics(
thread_sanitizer = True,
)
Then build the scheme.
Expected behavior
ThreadSanitizer should work.
rules_xcodeproj version
2.10.0
Xcode version
16.2
Bazel version
8.0.0
rules_apple version
3.16.1
rules_swift version
2.3.1
Additional information
No response
We need to adjust the rules to use the new flags from rules_swift. (And they need to use canonical labels, since we won't know what the user has named the dep.)
Fixed in https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/3206