我得到這個錯誤:的Xcode:爲建築x86_64的LD iOSUndefined符號:找不到架構x86_64的符號(S)
Undefined symbols for architecture x86_64:
"_hmac_sha1", referenced from:
-[OAHMAC_SHA1SignatureProvider signClearText:withSecret:] in OAHMAC_SHA1SignatureProvider.o
"_Base64EncodeData", referenced from:
-[OAHMAC_SHA1SignatureProvider signClearText:withSecret:] in OAHMAC_SHA1SignatureProvider.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
這是該行抱怨:
extern void hmac_sha1(const u_int8_t *inText, size_t inTextLength, u_int8_t* inKey, const size_t inKeyLength, u_int8_t *outDigest);
我無法弄清楚什麼是錯的,或者我該如何解決這個問題。
我真的很感謝你的幫助。
什麼是抱怨「_hmac_sha1」,引用「是這部分」extern void hmac_sha1(const u_int8_t * inText,size_t inTextLength,u_int8_t * inKey,const size_t inKeyLength,u_int8_t * outDigest);「 – user2924482