I've just filed [SR-14595] Cannot build project with Swift package dependencies if Undefined Behavior Sanitizer is on · Issue #4423 · apple/swift-package-manager · GitHub based on the bug where, if you have TSAN or USAN enabled for your app, then it can't be built if it has SPM dependencies because the packages will fail to build due to the error, "Could not open or create -dependency_info file".
I don't know why this is happening but any insight could be helpful. Thanks