如果你已经有了trunk账户可以跳过注册这一步骤。
注册的信息
新建Git仓库
clone地址
.podspec文件的作用是为了让CocoaPods搜索引擎知道该代码的作者、版本号、概要、描述、源代码地址、部署版本、依赖的框架等描述信息。
你可以使用Sourcetree或者在终端命令提交
$ git add --all
$ git commit -m'updata framework'
$ git push
$ git tag -0.0.1
$ git push origin --tags
这一步经常会遇到问题,一定要耐心解决。一般都是.podspec文件配置问题,仔细看报错都能很好解决。
pod spec lint MyFirstFramework.podspec
pod trunk push MyFirstFramework.podspec
提交成功
使用就和普通的pod一样
target AppName do
pod 'PTFramework'
end
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有