You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an Xcode project that defines an application target, if Undefined Behavior Sanitizer is on in the current scheme, then the compilation will fail with the error, "Could not open or create -dependency_info file"
The text was updated successfully, but these errors were encountered:
I experience a similar bug related to a dynamic dependency that stopped building once I enabled Thread Sanitizer for my tests. The package is Resolver and it has three products defined, all wrapping the same target. The build issue came up using the "Resolver-Dynamic" product as one of my dependencies. It even happens while opening the Resolver package directly and trying to test it.
A workaround that I found was to remove the "Resolver-Dynamic" product and set the "Resolver" product to dynamic. So it would appear to be related to how "Resolver-Dynamic" was a renaming of the "Resolver" target.
I had the same issue after enabling the `Thread Sanitizer` in Xcode.
Xcode 12.5.1 compiles without any issue.
Xcode 13 compiling for real devices have also had no issues.
Attaching SMP as `static` works and as `dynamic` gives the following error.
`Could not open or create -dependency_info file: DerivedData/<App>-ejgvodpbtmuyqicggqbhmmulndip/Build/Intermediates.noindex/Core.build/Debug-iphonesimulator/Core product.build/Objects-normal-tsan/x86_64/Core_dependency_info.dat`
Renaming the `Objects-normal` directory to `Objects-normal-tsan` let the App to compile successfully.
I'm able to reproduce the same issue with the Address Sanitizer as of Xcode 13.2b1. goppinath (JIRA User)'s suggestion to rename the directory fixes the problem (thanks!)
Additional Detail from JIRA
md5: 4488b0eb3b5c3b63d73df892b67d2b4d
Issue Description:
Given an Xcode project that defines an application target, if Undefined Behavior Sanitizer is on in the current scheme, then the compilation will fail with the error, "Could not open or create -dependency_info file"
The text was updated successfully, but these errors were encountered: