How to use address sanitizer on Android/iOS in UE4 Project?

I want to detects memory corruption bugs in my UE4 project’s c++ code on Android/iOS devices.
Could anyone tell me how to use address sanitizer? Or another tools?

This article (with translation) is the best resource I’ve found for iOS.

You simply need to edit your build configuration in /UnrealEngine/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
        <BuildConfiguration>
            <bEnableAddressSanitizer>true</bEnableAddressSanitizer>
        </BuildConfiguration>
    </Configuration>

However i’ve not worked out how to attach a debug cooked build to XCode and hit breakpoints. Info on that would be appreciated.

Also how to get it working with Android!

1 Like