A crash occurs when using iOS static libraries (Unreal Engine 5.3.1)

The iOS static library that worked fine in UE 4.27 crashes when used in UE 5.3.1.

Even when the static library contains only code that outputs using std::string, a crash(abort) occurs when the std::string destructor is called.
abort message: error for object {address}: pointer being freed was not allocated

It seems to be an issue lies not in the library code but in the standard library.

The call stack at the time of the crash is as follows, and an invalid address is loaded into the x0 register in FMallocAnsi::Free


Any ideas of a fix/workaround?

1 Like