I can't download Pod ParallaxHeader by Github

时间:2017-11-13 06:23:04

标签: ios github swift3 cocoapods

My question is about an Pod of Github.

I have a problem with a version. I can't download it! :(

https://github.com/romansorochak/ParallaxHeader (I want version of Swift3 -> 1.0.6)

I tried this: pod 'ParallaxHeader', '~> 1.0.6'

But Promt shows this error:

[!] Unable to find a specification for ParallaxHeader (~> 1.0.6)

Somebody knows whats happen??

Thank you so much!

2 个答案:

答案 0 :(得分:0)

Replace below code in your pod file .I have checked it and I can able to download pod file

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target ‘your project name’ do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for your project name

    pod 'ParallaxHeader', '~> 2.0.0'

end

答案 1 :(得分:0)

我通过以下步骤解决了这个问题:

  1. 打开终端。
  2. 转到您的项目路径。
  3. 写:

    • pod repo update

    • pod install。