Crash when connecting to a socket on iOS in distribution builds
I’m trying to build my project using Unreal Engine 5.4 for iOS. I use SocketIO 2.8.0 to connect to the backend. When trying to connect to the socket, a crash occurs. This only happens on iOS, only in Distribution builds, and only on Unreal 5.4. There are no problems on Unreal 5.2. Callstack: crashlog.txt
The callstack may be slightly different, but the problem is always when allocating or deallocating memory. I suspect that this may be a race condition and is related to some peculiarities of working with memory on iOS.
I tried using other versions of plugin, other versions of xcode, tried to build socket io using both c++20 and c++17, nothing helps.
likely related issues: https://github.com/getnamo/SocketIOClient-Unreal/issues/431 (5.3) and https://github.com/getnamo/SocketIOClient-Unreal/issues/402
iOS is not a primary platform I develop on, will likely have to depend on other devs to identify issue. Once a pull request with fix is opened I can merge it.