CocoaPods打包静态库

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012886093/article/details/84749182

### 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' => '[email protected]' }

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 [email protected] 'ycs' --description='iOS developer'

$ pod trunk me

- Name: ycs

- Email: [email protected]

- 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

猜你喜欢

转载自blog.csdn.net/u012886093/article/details/84749182