2016-09-16 62 views
3

我不能在Swift 3.0中安装Kanna。我在PodFile如下:Kanna(XML/HTML parser)swift3不要安装

use_frameworks! 
pod 'Kanna', '~> 2.0.0' 

它正在以下错误:(0.39或更高版本)需要

[!] Unable to satisfy the following requirements:

  • Kanna (~> 2.0.0) required by Podfile
  • Kanna (~> 2.0.0) required by Podfile
  • Kanna (~> 2.0.0) required by Podfile

None of your spec sources contain a spec satisfying the dependency: Kanna (~> 2.0.0) .

You have either: * out-of-date source repos which you can update with pod repo update . * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

回答

1

的CocoaPods⚠️

您在错过了'您的PodFile

use_frameworks! 
pod 'Kanna', '~> 2.0.0' 

你可以试试下面的,如果它仍然无法通过提交工作:

pod 'Kanna', :git => 'https://github.com/tid-kijyun/Kanna.git', :commit => '6ae52df72adf42e20147c98c77732d51e0e9294b' 
+0

OK)但是,通过使用提交ID –

+2

尝试是的。这行得通。谢谢。 – odemolliens

+1

同样的错误 –