【问题标题】:DDMathParser 3.0.0 with CocoaPods带有 CocoaPods 的 DDMathParser 3.0.0
【发布时间】:2016-12-24 16:56:55
【问题描述】:

嘿,圣诞快乐,

我想使用最新的 CocoaPods 版本将 DDMathParser 添加到我的 Swift 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

【问题讨论】:

    标签: swift3 cocoapods xcode8 ddmathparser


    【解决方案1】:

    DDMathParser 作者在这里...

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

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

    【讨论】:

    • 使用:tag... 成功。非常感谢您的快速回答。我刚刚看到你的包更新到 Swift 3.0 并错误地认为有一个 swift-3.0 分支可用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-22
    • 2017-06-13
    • 2017-02-10
    • 1970-01-01
    • 2014-09-03
    • 1970-01-01
    相关资源
    最近更新 更多