Initial test static library
After a library is referenced, errors may occur due to different library targets during compilation and running of the device and simulator, for example, error: Missing required architecture i386 in file.
Solution: Check the library search path settings. The path may be automatically added to delete the path of the relevant library.
PS: different compilation targets should be referenced in different libraries (devices and simulators), which are automatically referenced according to the compilation mode.
Detailed Tutorial:
Header search path:
$ {Project_dir}/../staticlib_project/build/$ {build_style}-$ {platform_name}/usr/local/include
Llibrary search path reference header search path
Http://osmorphis.blogspot.com/2010/02/static-libraries-in-iphone-projects.html
Http://osmorphis.blogspot.com/2010/02/static-libraries-in-iphone-projects_08.html