Does the Xcode thread santizer work for both Debug and Release builds in XCode?
I have a project where the sanitizer shows an error with a release build, but not debu