objective c - CommonCrypto Library Issue -


i'm trying md5 encryption in app. here code i'm using:

- (nsstring *)md5string { const char *cstr = [self utf8string]; unsigned char result[16]; cc_md5(cstr, strlen(cstr), result);  return [nsstring stringwithformat:         @"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",         result[0], result[1], result[2], result[3],         result[4], result[5], result[6], result[7],         result[8], result[9], result[10], result[11],         result[12], result[13], result[14], result[15]         ]; 

}

when try build application following error:
ld: library not found -lcommoncrypto clang: error: linker command failed exit code 1 (use -v see invocation)

how resolve issue? think has framework i'm not certain.

thanks,
bnjmnmyers

after whole day of digging found answer question. xcode doesn't want link commoncrypto library. import viewcontroller going use library.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -