owt-client-native
owt-client-native copied to clipboard
New builded iOS OWT.framework & WebRTC.framework, join meeting crash
With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully.
Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework.
However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake.
I tried to rebuild a new socket.io .a, unfortunately, not successful.
Any suggestions? Many thanks.
Crash Information:

After some tries, I built out libsioclient.a (tls) successfully.
However, when join meeting, socket url like: wss://xxx.xxx.com/socket.io/?EIO=4&transport=websocket
crashed here:

The TLS version of Socket.IO cpp lib depends on OpenSSL, while WebRTC depends on BoringSSL by default. To make them work together, please set GN argument owt_use_openssl to true, and set owt_openssl_header_root, owt_openssl_lib_root to the correct path.
I rebuild owt.framework, specify --ssl_root , then found the cause: webrtc uses deprecated openssl x509 methods: X509_get_notAfter, X509_get_notBefore
python3 /Users/jeremy/Documents/Jeremy/Work/Tool/depot_tools/depot_tools/src/scripts/build.py --scheme debug --arch arm64 --ssl_root /Users/jeremy/Documents/Jeremy/Work/Tool/depot_tools/OpenSSL-for-iPhone --skip_tests
With the new built libcrypto.a, libssl.a, it works. https://github.com/x2on/OpenSSL-for-iPhone ./build-libssl.sh --version=1.1.0f --deprecated
pc client faced the same problem after upgrade from 4.2.x to 4.3.0 compile command: python build-win.py --gn_gen --sdk --tests --ssl_root "C:\Users\Administrator\Downloads\openssl-1.1.0l-vs2017" --msdk_root "D:\Program Files (x86)\IntelSWTools\Intel(R) Media SDK 2018 R2\Software Development Kit" --output_path "D:/owt-client-native-build" --arch x64 --scheme release crashed in join.
With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully.
Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework.
However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake.
I tried to rebuild a new socket.io .a, unfortunately, not successful.
Any suggestions? Many thanks.
Crash Information:
你好,我是来自中国上海的iOS开发者,请问你那边如何解决这个问题的.我遇到的问题和你一样.我本地使用了Openssl..我目前版本是OWT4.2 的.可否 发给我一份 4.3 ,和openssl 不冲突的framwork 和 XXX.a 文件.谢谢
With the original iOS OWT.framework & WebRTC.framework & libsioclient_tls_no_verification.a in CS_WebRTC_Client_SDK_iOS.v4.2, I could join meeting successfully. Then I checked out latest code from master (https://github.com/open-webrtc-toolkit/owt-client-native), built out new iOS OWT.framework & WebRTC.framework. However, with the new builded iOS OWT.framework & WebRTC.framework, when join meeting, it crashed. Seems it's related with socket.io tls handshake. I tried to rebuild a new socket.io .a, unfortunately, not successful. Any suggestions? Many thanks. Crash Information:
你好,我是来自中国上海的iOS开发者,请问你那边如何解决这个问题的.我遇到的问题和你一样.我本地使用了Openssl..我目前版本是OWT4.2 的.可否 发给我一份 4.3 ,和openssl 不冲突的framwork 和 XXX.a 文件.谢谢
请问您这边现在有新的framework和.a文件吗,我这边编译碰到了问题,急需一份,有的话发我一份吧,谢谢
你们编译出来的库,目录是什么样的?OWT和 WebRtc 加起来多大??
Hello We are facing the same issue with all three SocketClient static libraries. We have tried all OWT v4.2, 4.2.1, 4.3, 4.3.1, and we face the same issue with all versions. Please help us as we have tried almost everything. I'm attaching all three crashes and errors we get. Images have the text on top. Please reply ASAP. We are also using "Socket.IO-Client-Swift" in our app and in the static library. We are not sure that if that can cause this issue.
终于解决这个问题了,owt一个小小的失误,就能让技术人员忙活几周
Please build iOS SDK and socket.io cpp with the same version of OpenSSL.