Description

Address Sanitizer (asan) is currently not working on iOS. This could be a helpful feature to get working again.

Steps to Reproduce

1) Add "IOSPlatform.bEnableAddressSanitizer = true;" to the project's .Target.cs file

2) Run it on device.  It will fail with a message about a missing dylib

Callstack

dyld[5691]: Library not loaded: @rpath/libclang_rt.asan_ios_dynamic.dylib

  Referenced from: <F8D533A9-FF36-3F42-BCD5-834AA372EF5F> /private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/NewTPC2

  Reason: tried: '/usr/lib/system/introspection/libclang_rt.asan_ios_dynamic.dylib' (no such file, not in dyld cache), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/var/containers/Bundle/Application/EAE7C066-7189-4AF7-9755-AC804C338547/NewTPC2.app/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_ios_dynamic.dylib' (no such file), '/private/preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/libclang_rt.asan_ios_dynamic.dylib' (no such file)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-208712 in the post.

4
Login to Vote

Unresolved
ComponentUE - Platform - Apple
Affects Versions5.3
Target Fix5.6
CreatedMar 1, 2024
UpdatedOct 19, 2024
View Jira Issue