Address Sanitizer (asan) is currently not working on iOS. This could be a helpful feature to get working again.
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
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)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-208712 in the post.
3 |
Component | UE - Platform - Apple |
---|---|
Affects Versions | 5.3 |
Target Fix | 5.5 |
Created | Mar 1, 2024 |
---|---|
Updated | Sep 20, 2024 |