Re: library not found: libclang_rt.tsan_osx_dynamic.dylib

Ben Kennedy

This is a wild guess, but are you building with Thread Sanitizer enabled? (The "tsan" in the missing library name suggests so.)

That the named clang version (13.0.0) seems not to match your toolchain (13.1.6) seems unusual also.

Is this a development or release build? Is it running on the same system that it was built on?


On 15 Jun 2022, at 3:55 am, Gerriet M. Denkmann <gerriet@...> wrote:

I have an macOS app, which uses a privileged helper tool: de.mdenkmann.SW-Helper

This helper tool crashes with (

ASI found [dyld] (sensitive) 'Library not loaded: @rpath/libclang_rt.tsan_osx_dynamic.dylib
Referenced from: /Library/PrivilegedHelperTools/de.mdenkmann.SW-Helper
Reason: tried: '/Library/PrivilegedHelperTools/libclang_rt.tsan_osx_dynamic.dylib' (no such file), '/Applications/' (no such file), '/Library/PrivilegedHelperTools/libclang_rt.tsan_osx_dynamic.dylib' (no such file), '/Applications/' (no such file), '/usr/local/lib/libclang_rt.tsan_osx_dynamic.dylib' (no such file), '/usr/lib/libclang_rt.tsan_osx_dynamic.dylib' (no such file)’

There is a:
-rwxr-xr-x 1 root wheel 3555872 18 May 11:15 /Applications/*

Note: 13.1.6 but not 13.0.0.

Also I don’t understand why:
-r-xr--r-- 1 root wheel 261440 2 Dec 2021 /Library/PrivilegedHelperTools/de.mdenkmann.SW-Helper*

I would expect it to use:
-rwxr-xr-x 1 gerriet staff 259680 15 Jun 17:28 /Users/gerriet/Library/Developer/Xcode/DerivedData/SchwarzWald-aftcfaewggcqztcrhnwltqoiahjj/Build/Products/Development/*


Join { to automatically receive all group messages.