rules_xcodeproj icon indicating copy to clipboard operation
rules_xcodeproj copied to clipboard

Bug: Thread sanitizer broken with Bazel 8.0.0

Open jpsim opened this issue 11 months ago • 1 comments

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

jpsim avatar Dec 17 '24 19:12 jpsim

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.)

brentleyjones avatar Dec 17 '24 20:12 brentleyjones

Fixed in https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/3206

adincebic avatar Nov 16 '25 06:11 adincebic