In Xcode 10.2 I can no longer run my app on a simulator with thread sanitizer enabled. I get the error
This app could not be installed at this time.
WatchKit v3 app has disallowed Info.plist key: NSBuiltWithThreadSanitizer
My app includes a watch app and a lot of frameworks (some for watch, some for iOS), but I get this error when trying to run my main app on a simulator. I checked my plist files and confirmed that this is not a key I specified anywhere.
When I check the plist files in DerivedData, I see that indeed all of the plists for my watch OS frameworks have this key. But the only way I can find to remove the flag is to disable thread sanitizer completely. How do I disable it just for the watch and not my main app?