日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CocoaPods打包静态库

發布時間:2025/3/17 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

總結

以上是生活随笔為你收集整理的CocoaPods打包静态库的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。