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

 

金服学院

 

你可能感兴趣的:(IOS,cocoapods,file,patterns,The,so)