OpenSSL authentication works on Editor but crashes in package

hi,

I’ve bumped into an interesting issue:
I want to implement a rabbitMQ client in C++ on Mac. For that I use AMQP-CPP library. Some addition that I need to use OpenSSL as I want to use amqps schema in my code ro connect to the server.
If I run my app in Editor everything works fine, without any problem.
BUT as I build a package I got this error, below:

(some info: I use libuv library for eventloop, and it seems the app connect but as it want to authenticate with OpennSSL some problem turns up)
BUT the strangest one that the app works on Editor but when I want to buld a package, it crashes

I would appriciate any advice as I have run out of ideas

LogPlayLevel: Warning: UAT: [2024.04.05-20.34.41:458][ 0]LogTemp: Warning: ++CONNECTED
LogPlayLevel: UAT: libc++abi: terminating due to uncaught exception of type std::__1::bad_function_call
LogPlayLevel: Error: UAT: [2024.04.05-20.34.41:494][ 0]LogMac: === Critical error: ===
LogPlayLevel: UAT: SIGABRT: abort() called
LogPlayLevel: UAT: [2024.04.05-20.34.41:494][ 0]LogMac: 0x80e360dc libsystem_kernel.dylib!__pthread_kill() [UnknownFile])
LogPlayLevel: UAT: 0x80d79a40 libsystem_c.dylib!abort() [UnknownFile])
LogPlayLevel: UAT: 0x80e25070 libc++abi.dylib!__cxxabiv1::__aligned_malloc_with_fallback(unsigned long) [UnknownFile])
LogPlayLevel: UAT: 0x80e1512c libc++abi.dylib!demangling_terminate_handler() [UnknownFile])
LogPlayLevel: UAT: 0x80abb99c libobjc.A.dylib!_objc_terminate() [UnknownFile])
LogPlayLevel: UAT: 0x80e24434 libc++abi.dylib!std::__terminate(void ()()) [UnknownFile])
LogPlayLevel: UAT: 0x80e27520 libc++abi.dylib!__cxa_get_exception_ptr() [UnknownFile])
LogPlayLevel: UAT: 0x80e27464 libc++abi.dylib!__cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception
) [UnknownFile])
LogPlayLevel: UAT: 0x0093493c CPPLibTest1!AMQP::Function<ssl_method_st const* ()>::operator()() const [UnknownFile])
LogPlayLevel: UAT: 0x0093484c CPPLibTest1!AMQP::OpenSSL::TLS_client_method() [UnknownFile])
LogPlayLevel: UAT: 0x00940d3c CPPLibTest1!AMQP::SslHandshake::SslHandshake(AMQP::TcpExtState*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, AMQP::TcpOutBuffer&&) [UnknownFile])
LogPlayLevel: UAT: 0x00940c68 CPPLibTest1!AMQP::SslHandshake::SslHandshake(AMQP::TcpExtState*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, AMQP::TcpOutBuffer&&) [UnknownFile])
LogPlayLevel: UAT: 0x00940a9c CPPLibTest1!AMQP::TcpResolver::proceed(AMQP::Monitor const&) [UnknownFile])
LogPlayLevel: UAT: 0x00939534 CPPLibTest1!AMQP::TcpResolver::process(AMQP::Monitor const&, int, int) [UnknownFile])
LogPlayLevel: UAT: 0x00937718 CPPLibTest1!AMQP::TcpConnection::process(int, int) [UnknownFile])
LogPlayLevel: UAT: 0x070d465c CPPLibTest1!AMQP::LibUvHandler::Watcher::callback(uv_poll_s*, int, int) [UnknownFile])
LogPlayLevel: UAT: 0x0095e758 CPPLibTest1!uv__poll_io() [UnknownFile])
LogPlayLevel: UAT: 0x0095ce7c CPPLibTest1!uv__io_poll() [UnknownFile])
LogPlayLevel: UAT: 0x0095a210 CPPLibTest1!uv_run() [UnknownFile])