- xcode升级后报Undefined symbols for architecture arm64:错误
Undefined symbols for architecture arm64:
"KDF_SM2(unsigned char*, unsigned long, unsigned long, unsigned char*)", referenced from:
SM2_encrypt_publickey(ec_key_st*, unsigned char const*, int, unsigned char*, unsigned long*) in libeidapi.a(eIDCipher.o)
SM2_dencrypt_privatekey(ec_key_st*, unsigned char const*, unsigned long, unsigned char*, unsigned long*) in libeidapi.a(eIDCipher.o)
"_iconv_open", referenced from:
code_convert(char*, char*, char*, int, char*, int*) in libeidapi.a(CertResolver.o)
"_iconv", referenced from:
code_convert(char*, char*, char*, int, char*, int*) in libeidapi.a(CertResolver.o)
"_iconv_close", referenced from:
code_convert(char*, char*, char*, int, char*, int*) in libeidapi.a(CertResolver.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
- 最终解决方案:
将 Settings 内的 Enable Testability 设置为 No