DoubangoTelecom / doubango

Doubango VoIP framework
https://doubango.org
398 stars 200 forks source link

Undefined symbols for architecture x86_64: when running my project with iOS-ngn-stack as sub-projected. #528

Open sohailmansoori opened 3 years ago

sohailmansoori commented 3 years ago

Can anyone help me on this , Its roadblocker for my project. I googled it lots of developers posted same issues but not replied by anyone . For more detail or having a look on code you guys can reach me on my skype. Skype Id - live:85b341f7d8101770 Mail id - smansoori12@gmail.com

ISSUE - I did subproject of iOS-ngn-stack in my project to use its calling methods And provided Header search path and lib path in my project setting . when I compile my project it gives some architecture error x86_64: - which is coming for those doubango library .

I am using Xcode - 12.2 Running it in simulator - iPhone 12 (OS -14.2)


Undefined symbols for architecture x86_64: "_SSL_accept", referenced from: _tnet_tls_socket_accept in libtinyNET.a(tnet_tls.o) "_SSL_set_fd", referenced from: _tnet_tls_socket_create in libtinyNET.a(tnet_tls.o) "_SSL_CTX_free", referenced from: tnet_transport_ssl_deinit in libtinyNET.a(tnet_transport.o) "_SSL_CTX_use_PrivateKey_file", referenced from: _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_SSL_CTX_load_verify_locations", referenced from: _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_SSLv23_server_method", referenced from: __tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_CTX_set_cipher_list", referenced from: tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_CTX_ctrl", referenced from: tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_CTX_new", referenced from: __tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_free", referenced from: _tnet_dtls_socket_dtor in libtinyNET.a(tnet_dtls.o) _tnet_tls_socket_dtor in libtinyNET.a(tnet_tls.o) "_SSL_do_handshake", referenced from: _tnet_dtls_socket_do_handshake in libtinyNET.a(tnet_dtls.o) "_SSL_state", referenced from: _tnet_dtls_socket_do_handshake in libtinyNET.a(tnet_dtls.o) _tnet_tls_socket_recv in libtinyNET.a(tnet_tls.o) "_SSL_CTX_get_verify_mode", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_SSL_ctrl", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_SSL_get_peer_certificate", referenced from: tnet_dtls_socket_is_remote_cert_fp_match in libtinyNET.a(tnet_dtls.o) "_SSL_connect", referenced from: _tnet_tls_socket_connect in libtinyNET.a(tnet_tls.o) "_SSL_get_verify_result", referenced from: tnet_dtls_socket_is_remote_cert_fp_match in libtinyNET.a(tnet_dtls.o) "_OBJCCLASS$_AVAudioPlayer", referenced from: objc-class-ref in libios_ngn_stack.a(NgnSoundService.o) "_SSL_set_accept_state", referenced from: _tnet_dtls_socket_set_setup in libtinyNET.a(tnet_dtls.o) "_SSL_set_read_ahead", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_SSL_new", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) _tnet_tls_socket_create in libtinyNET.a(tnet_tls.o) "_SSL_set_bio", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_SSL_write", referenced from: _tnet_tls_socket_write in libtinyNET.a(tnet_tls.o) "_SSL_CTX_set_tlsext_use_srtp", referenced from: _tnet_transport_dtls_use_srtp in libtinyNET.a(tnet_transport.o) "_SSL_get_wbio", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_SSL_library_init", referenced from: _tnet_startup in libtinyNET.a(tnet.o) "_SSL_get_selected_srtp_profile", referenced from: _tnet_dtls_socket_do_handshake in libtinyNET.a(tnet_dtls.o) "_DTLSv1_method", referenced from: tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_set_connect_state", referenced from: _tnet_dtls_socket_set_setup in libtinyNET.a(tnet_dtls.o) "_SSLv23_client_method", referenced from: tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) "_SSL_set_ex_data", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) "_OBJCCLASS$_AVAudioSession", referenced from: objc-class-ref in libios_ngn_stack.a(NgnSoundService.o) objc-class-ref in libtinyDAV.a(tdav_apple.o) "_SSL_load_error_strings", referenced from: _tnet_startup in libtinyNET.a(tnet.o) "_SSL_get_error", referenced from: _tnet_dtls_socket_do_handshake in libtinyNET.a(tnet_dtls.o) _tnet_dtls_socket_handle_incoming_data in libtinyNET.a(tnet_dtls.o) _tnet_tls_socket_connect in libtinyNET.a(tnet_tls.o) _tnet_tls_socket_accept in libtinyNET.a(tnet_tls.o) _tnet_tls_socket_write in libtinyNET.a(tnet_tls.o) _tnet_tls_socket_recv in libtinyNET.a(tnet_tls.o) "_SSL_read", referenced from: _tnet_tls_socket_recv in libtinyNET.a(tnet_tls.o) "_SSL_export_keying_material", referenced from: _tnet_dtls_socket_do_handshake in libtinyNET.a(tnet_dtls.o) "_SSL_set_verify", referenced from: _tnet_dtls_socket_create in libtinyNET.a(tnet_dtls.o) _tnet_dtls_socket_use_srtp in libtinyNET.a(tnet_dtls.o) "_SSL_CTX_use_certificate_file", referenced from: _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_SSL_CTX_set_default_passwd_cb_userdata", referenced from: _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_SSL_shutdown", referenced from: _tnet_dtls_socket_dtor in libtinyNET.a(tnet_dtls.o) _tnet_tls_socket_dtor in libtinyNET.a(tnet_tls.o) "_AVAudioSessionCategoryPlayAndRecord", referenced from: -[NgnSoundService stopKeepAwakeSound] in libios_ngn_stack.a(NgnSoundService.o) _tdav_apple_init in libtinyDAV.a(tdav_apple.o) "_SSL_pending", referenced from: _tnet_tls_socket_recv in libtinyNET.a(tnet_tls.o) "_SSL_CTX_check_private_key", referenced from: _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_SSL_get_ex_data", referenced from: tnet_dtls_verify_cert in libtinyNET.a(tnet_dtls.o) "_SSL_CTX_set_verify", referenced from: __tnet_transport_ssl_init in libtinyNET.a(tnet_transport.o) _tnet_transport_tls_set_certs in libtinyNET.a(tnet_transport.o) "_AVAudioSessionCategoryPlayback", referenced from: -[NgnSoundService playKeepAwakeSoundLooping:] in libios_ngn_stack.a(NgnSoundService.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks in advance.