1.創建一個framework的工程
2.Base SDK 選擇Latest iOS
3.OS X Deployment Target 選擇Compiler Default
4.Strip Debug Symbols During Copy 選擇No
5.Strip Style 選擇Non-Global Symbols
6.Targeted Device Family 選擇iPhone
7.iOS Deployment Target 選擇iOS 7.0以上兼容
8.Dead Code Stripping 必須選擇NO要不然有xib話加載報錯
9.Mach-o Type 選擇Static Library
10.如果要兼容5c 需要在Architectures 加一項armv7s
11.xib不能放到.bundle或者物理文件夾下面打包,這樣xib加載不了,可以創建文件夾把xib放進去加到工程里面選擇文件組不是不是物理文件夾