2016-09-16 60 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

同樣的錯誤 –