ios - clang: error: linker command failed with exit code 1 coming only on device -
when i'm trying test app on device below error. error not coming in simulator. i'm using xcode 7. can please help?
undefined symbols architecture armv7: "_pkcs5_pbkdf2_hmac_sha1", referenced from: _sqlcipher_cipher_ctx_key_derive in sqlcipher.a(sqlite3.o) "_hmac_ctx_init", referenced from: _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_hmac_init_ex", referenced from: _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_hmac_final", referenced from: _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_hmac_ctx_cleanup", referenced from: _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_rand_bytes", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) _sqlcipher_codec_ctx_init in sqlcipher.a(sqlite3.o) "_hmac_update", referenced from: _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_evp_cipher_ctx_set_padding", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) "_evp_cipherinit", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) "_evp_cipherfinal", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) "_evp_get_cipherbyname", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) _sqlcipher_activate in sqlcipher.a(sqlite3.o) "_openssl_add_all_algorithms_noconf", referenced from: _sqlcipher_activate in sqlcipher.a(sqlite3.o) "_evp_md_size", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) "_evp_sha1", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) _sqlcipher_page_hmac in sqlcipher.a(sqlite3.o) "_evp_cipher_key_length", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) "_evp_cipherupdate", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) "_evp_cipher_iv_length", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) "_evp_cipher_ctx_cleanup", referenced from: _sqlcipher_page_cipher in sqlcipher.a(sqlite3.o) "_evp_cipher_block_size", referenced from: _sqlcipher_codec_ctx_set_cipher in sqlcipher.a(sqlite3.o) ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation)
these openssl symbols, not linking against libcrypto. add -lcrypto linker flags.
Comments
Post a Comment