CocoaPods打包静态库

### 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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值