Adding third-party libraries The general steps are three-step:
1) Drag the Library folder, copy a copy to join your own project
2) Add the frame or dynamic link library required by the library
3) Modify the compiler properties under Arc-fno-objc-arc
But join Ziparchive today, follow the steps to add, add libz dynamic Library, modify-fno-objc-arc to report 23 errors (Khan too many errors emitted, stopping now), are expected Identifier or ' (', Unknown type name ' NSString ', could not build module ' Foundation ', could not build module ' UIKit '.
Through Baidu, StackOverflow found the solution:
In your project PCH file, do the following with your #import header file:
#ifdef __objc__
#import
#endif
Analysis, Ziparchive Library is C OC C + + file mixed, PCH inside the header file is global, when the C file import is actually meaningless, that is, the source of the problem, so to OBJC district separately compiled, so always solve.
Import third-party libraries unknown type name ' NSString ' solution