Can I enable neverStripDebugInfo for native build?

android and iOS.

Any update on this? I have

build =
    {
        neverStripDebugInfo = true,
    },

So that I can get the proper error message in a runtime error:

local function onUnhandledError(event)
local msg = tostring(event.errorMessage)
print(msg)
end
Runtime:addEventListener(“unhandledError”, onUnhandledError)

But when I build through native iOS, I get gibberish. The filename, line number etc are stripped. Any suggestion how to keep the unhandledError message on a native build?

I figured this out (thanks to claude). For reference, anyone looking for the same:

In Applications/Corona-3730/Native/Corona/mac/bin/CopyResource.sh , we have:

if [[ $BUILD_CONFIG == @(Debug|DEBUG|debug)* ]]; then
   OPTIONS=
else
   OPTIONS=-s
fi

The -s flag strips the debug output when not a debug build. If I change it to:

OPTIONS=

Then it does not strip the debug output, which is particularly helpful to submit the error log to crashlytics, so that in the crashlytics dashboard we can see the exact file and line number for error. But it also adds extra payload to the release version and may have some minor performance issue.