When I enable Thread Sanitiser, the app crashes at launch with:
dyld: Symbol not found: _vfork
Referenced from: /Users/cyupa/Library/Developer/CoreSimulator/Devices/CC4C4E42-ED50-44EC-975F-EE359D6ADED7/data/Containers/Bundle/Application/6B59B224-9958-4405-8920-A96A932934E2/ClickDocDE.app/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/cyupa/Library/Developer/CoreSimulator/Caches/dyld/21A5294g/com.apple.CoreSimulator.SimRuntime.iOS-14-5.18E182
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/cyupa/Library/Developer/Xcode/DerivedData/ClickDoc-czbdfskrwvaneubcallbzipphltx/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=@executable_path/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Content
(lldb)
dyld`__abort_with_payload:
0x11162e750 <+0>: movl $0x2000209, %eax ; imm = 0x2000209
0x11162e755 <+5>: movq %rcx, %r10
0x11162e758 <+8>: syscall
-> 0x11162e75a <+10>: jae 0x11162e764 ; <+20>
0x11162e75c <+12>: movq %rax, %rdi
0x11162e75f <+15>: jmp 0x1115ec120 ; cerror_nocancel
0x11162e764 <+20>: retq
0x11162e765 <+21>: nop
0x11162e766 <+22>: nop
0x11162e767 <+23>: nop
This fails on multiple machines with different OS and Xcode versions.