使用CocoaPods打包静态库.a文件和.framework文件

2018-02-27 11:27:53来源:oschina作者:kingly09人点击

分享

使用CocoaPods打包静态库.a文件和.framework文件


安装cocoapods-packager插件

执行如下命令:


sudo gem install cocoapods-packager

输入密码,见到如下,即表示cocoapods-packager插件成功


kinglydeMacBook-Pro:KYMenu kingly$ sudo gem install cocoapods-packager
Password:
Sorry, try again.
Password:
Fetching: cocoapods-packager-1.5.0.gem (100%)
Successfully installed cocoapods-packager-1.5.0
Parsing documentation for cocoapods-packager-1.5.0
Installing ri documentation for cocoapods-packager-1.5.0
Done installing documentation for cocoapods-packager after 0 seconds
1 gem installedcd到podspec所在文件目录下
kinglydeMacBook-Pro:KYMenu kingly$ ls
Carthage KYMenu.gif KYMenuDemo_swift
KYMenu KYMenu.podspec LICENSE
KYMenu-0.0.8 KYMenuDemo_objc README.md
kinglydeMacBook-Pro:KYMenu kingly$
打包

打包成.framework文件


$podpackage KYMenu.podspec --force

打包成.a文件。--force是指强制覆盖


$podpackage KYMenu.podspec --library --force

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台