### CocoaPods打包静态库
$ pod lib create FMIOSKit //创建
$ git tag -a 0.1.2 -m commit //打tag
$ git push --tags //提交tag
$ git push origin master
$ sudo gem install cocoapods-packager
$ pod package FMIOSKit.podspec —force //打包
### 静态库配置参考
// 关键部分
s.homepage = 'https://coding.net/u/facemeeting/p/FMIOSKit/git'
s.author = { 'yangcs' => '1214099793@qq.com' }
s.source = { :git => 'https://git.coding.net/YcsGH/FMIOSKit.git' :tag => s.version.to_s }
s.source_files = 'FMIOSKit/Classes/**/*'
s.public_header_files = 'FMIOSKit/Classes/Public/*.h'
s.resource_bundles = {
'FMIOSKit' => 'FMIOSKit/Assets/**/*.png' }
s.prefix_header_contents = '#import "fmkit.h"'
s.frameworks = 'SystemConfiguration' 'MobileCoreServices'
s.dependency 'AFNetworking' '~> 3.1.0'
s.dependency 'Masonry' '~> 0.6.4'
### 发布自己的开源框架到CocoaPods
$ pod trunk register 1214099793@qq.com 'ycs' --description='iOS developer'
$ pod trunk me
- Name: ycs
- Email: 1214099793@qq.com
- Since: February 21st 02o43
- Pods: None
- Sessions:
- February 21st 02o43 - June 29th 02o45. IP: 171.217.104.49
Description: iOS developer
$ pod trunk push FMIOSKit.podspec