2016-12-24 64 views
0

嘿那里,圣诞快乐,DDMathParser 3.0.0用的CocoaPods

我想使用最新的CocoaPods版本DDMathParser添加到我的斯威夫特3项目。问题是我只安装了DDMathParser 2.0.0。我错过了什么?

我podfile是:

platform :osx, '10.11' 
target 'DDTest02' do 
use_frameworks! 
pod 'DDMathParser', :git => 'https://github.com/davedelong/DDMathParser.git' 

当我尝试使用:

pod 'DDMathParser', :git => 'https://github.com/davedelong/DDMathParser.git', :branch => 'swift-3.0' 

它抛出一个错误这里warning: Could not find remote branch swift-3.0 to clone. fatal: Remote branch swift-3.0 not found in upstream origin

回答

1

DDMathParser作者...

没有swift-3.0分支,所以我不确定你为什么要这样做。尝试使用以下命令指定3.0.0标记:

pod 'DDMathParser', :git => 'https://github.com/davedelong/DDMathParser.git', :tag ⇒ '3.0.0' 
+0

使用':tag ...'成功解决了问题。非常感谢您的快速回答。我刚刚看到你的包更新到Swift 3.0,并错误地认为有一个'swift-3.0'分支可用。 – JFS