CocoaPods 公有仓库的创建过程的问题

 

pod trunk register 邮箱 'github账号' --verbose

pod spec create xxxxx

git tag 'v1.0.0'

git push --tags

git push origin master

pod trunk push XXXXX.podspec

 

一、

 

 

- ERROR | [iOS] file patterns: The `source_files` pattern did not match any file.

 

先要检查创建好的文件夹与source_files要对应起来,其次就是下面第二种情况引起的,找不到相关版本引起上面的错误

 

 

二、

 

warning: Could not find remote branch v1.0.0 to clone.

fatal: Remote branch v1.0.0 not found in upstream origin

 

版本号问题

git tag 1.0.0 而trunk的版本是v1.0.0

解决步骤一:

git tag v1.0.0

git push tag

步骤二

 

podspec文件里  :tag => "v#{s.version}"

 

 

三、

 

 The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod

 

 

 

echo "2.3" > .swift-version

 

金服学院

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值