1.打开xcode 选择新建Library --- Cocoa touch static Library --- choose --- 命名 2. 新建自己要编写的库文件 3. 实现完成以后编译一下,让后你的库文件就可以使用了