Currently I am including an external library in my xcode
project. I have included the libraries manually in my project, so I am able to get all the library function. There is no any compile time errors, but when I am running I am getting runtime error
somewhat like mentioned bellow
Undefined symbols for architecture x86_64: "_zip_error_to_str", referenced from: Greeting::Greeting() in Myzipclass.o "_zip_open", referenced from: Greeting::Greeting() in Myzipclass.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've included libzip
libraries in to my project.
More details: I haven't included any framework. Is it necessary to include framework? I am totally new in xcode
. If it is necessary to include framework then can anyone tell me procedures to include? I mean, should it be inside the project?
Just concluded from the error info, See if static library libz.1.XXdylib have been added to xcode
. Otherwise,
targets--->build phases----->link binary with libraries-----> add libz
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.