Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
5 Views

iOS SSL implement

I'm using iOS client to connect a SSL server.

I replace labsclient.a with labsclient_tls.a but get some error while compiling the code.

Undefined symbols for architecture arm64:

  "_SSLv2_method", referenced from:

      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libsioclient_tls.a(sio_client_impl.o)

  "_SSLv2_client_method", referenced from:

      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libsioclient_tls.a(sio_client_impl.o)

  "_SSLv2_server_method", referenced from:

      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libsioclient_tls.a(sio_client_impl.o)

  "_CONF_modules_unload", referenced from:

      boost::asio::ssl::detail::openssl_init_base::do_init::~do_init() in libsioclient_tls.a(sio_client.o)

  "_ENGINE_cleanup", referenced from:

      boost::asio::ssl::detail::openssl_init_base::do_init::~do_init() in libsioclient_tls.a(sio_client.o)

  "_OPENSSL_add_all_algorithms_noconf", referenced from:

      boost::asio::ssl::detail::openssl_init_base::do_init::do_init() in libsioclient_tls.a(sio_client.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

 

Is there anything I miss to set or include?

 

Tags (2)
0 Kudos
4 Replies
Highlighted
5 Views

Hi Chaoyu,

Hi Chaoyu,

Would you please double check the build path settings, and make sure "Header Search Paths" and "Library Search Paths" include our released libsclient_tls.a?

Thanks!

0 Kudos
Highlighted
Beginner
5 Views

 

 

Hi, Chunbo
 

Thanks for your aid.
I check my setting and still don't have any idea about those errors

1.files in $(PROJECT_DIR)/libs

libsioclient.a
libsioclient_tls.a
libwoogeen.a

2.here is my setting

Header Search Paths:$(PROJECT_DIR)/libs
Library Search Paths : $(PROJECT_DIR)/libs
User Header Search Paths:$(PROJECT_DIR)/include

3.Link Binary With Libraries

 

0 Kudos
Highlighted
5 Views

Hi Chaoyu,

Hi Chaoyu,

It seems something (picture?) is missing from your last reply with ".Link Binary With Libraries"?

Thanks!

0 Kudos
Highlighted
5 Views

Also, please let us know your

Also, please let us know your iOS version and the version of our app you used.
Thanks!

0 Kudos