Xcode编译异常 Apple Mach-o Linker Error ld: symbol(s) not found for architecture i386

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

"_curl_easy_strerror", referenced from:

      BBGDownloadNotice::errorString(int) in BBGDownload.o

      zc::CURLRaii::perform(int*) in ZCHttpClient.o


看到这种情况, 一定是没有链接函数库,也就是xxx.a这种文件,改正方法是:

点击工程图标->Target下的工程名->Build Phases->把libcur.a拖入Link Binary With Libraries

你可能感兴趣的:(Xcode编译异常 Apple Mach-o Linker Error ld: symbol(s) not found for architecture i386)