ios – 创建我的第一个CocoaPod时的问题

前端之家收集整理的这篇文章主要介绍了ios – 创建我的第一个CocoaPod时的问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试创建我的第一个pod,并正在遵循本教程:
http://www.sitepoint.com/creating-cocoapods/

但是当我做:

pod spec lint GLLingoManager.podspec

我得到以下错误

$pod spec lint GLLingoManager.podspec

 -> GLLingoManager (0.1.0)
    - ERROR | [OSX] unknown: Encountered an unknown error ([!] /Applications/Xcode.app/Contents/Developer/usr/bin/git clone https://github.com/xeppen/GLLingoManager.git /var/folders/v6/tdz6zc7j10j_k0pc1vy627zm0000gn/T/d20160504-76297-8l71fj --template= --single-branch --depth 1 --branch 0.1.0

Cloning into '/var/folders/v6/tdz6zc7j10j_k0pc1vy627zm0000gn/T/d20160504-76297-8l71fj'...
warning: Could not find remote branch 0.1.0 to clone.
fatal: Remote branch 0.1.0 not found in upstream origin
) during validation.

Analyzed 1 podspec.

[!] The spec did not pass validation,due to 1 error.

我不明白有什么问题我该怎么办?

解决方法

Add a 0.1.0 version for your github repo.图片来自Github incase the link dies:

原文链接:https://www.f2er.com/iOS/328860.html

猜你在找的iOS相关文章