I get the following error only when I try to build unit tests of the iPhone static library:
Undefined symbols for architecture i386: "std::terminate()", referenced from: -[ZipArchive dealloc] in libMyProject.a(ZipArchive.o) "___gxx_personality_v0", referenced from: Dwarf Exception Unwind Info (__eh_frame) in libMyProject.a(ZipArchive.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Building a source project works great.
What can I lose?
It should be noted that ZipArchive is a .mm file that refers to the libz.dylib structure, which is referenced both in the source project and in the test project.
In addition, the usual suspected Build objects have the following meanings:
Framework search paths : "$ (SDKROOT) / Developer / Library / Frameworks" "$ (DEVELOPER_LIBRARY_DIR) / Frameworks"
Other linker flags : -all_load -lxml2 - ObjC
Header search paths : / usr / include / libxml2
source share