CocoaPods打包静态库
### CocoaPods打包靜態(tài)庫(kù)
$ pod lib create FMIOSKit //創(chuàng)建
$ 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 //打包
?
### 靜態(tài)庫(kù)配置參考
// 關(guān)鍵部分
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'
?
### 發(fā)布自己的開源框架到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
總結(jié)
以上是生活随笔為你收集整理的CocoaPods打包静态库的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 散度与梯度在图像中的应用
- 下一篇: 润乾报表与DERBY数据库的创建连接详解