We have an app with lots of local Swift packages. The app builds fine, normally.
However with Thread Sanitizer or Undefined Behavior Sanitizer turned on, the app will not build in Xcode 12.5. We get the following errors:
ld: Could not open or create -dependency_info file: /Users/REDACTED/code/ios-2/DerivedData/REDACTED/Build/Intermediates.noindex/MyPackage.build/Debug-iphonesimulator/MyPackage.build/Objects-normal-tsan-ubsan/x86_64/MyPackage_577755BF6_PackageProduct_dependency_info.dat
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Why is this happening? How are we supposed to debug our app with TSAN/USAN if the app cannot even be built?
Note: the directory
Objects-normal-tsan-ubsan does not exist for the Swift packages.