At first,create new project, IOS ----->Cocoa Touch Static Library ,if you finish write your code ,press twice (2次) "Commend+B" , then right click your mouse "show in Finder" find "Debug-iphoneos" and"Debug-iphonesimulator"
then open your 终端 input
lipo -create /Users/apple/Library/Developer/Xcode/DerivedData/MyStaticProject-aipmzdcsxfuogochfeuvbwkrvxuz/Build/Products/Debug-iphoneos/libMyStaticProject.a /Users/apple/Library/Developer/Xcode/DerivedData/MyStaticProject-aipmzdcsxfuogochfeuvbwkrvxuz/Build/Products/Debug-iphonesimulator/libMyStaticProject.a -output /Users/apple/Desktop/SBSBSBSBSB.a
then create a new project and add .h file
file's add static library
$(SRCROOT)/工程名/ 到那个文件夹所在的库
$(PROJECT_DIR)Itool/............