我如何更新我的可可回购?

时间:2016-10-18 22:05:07

标签: cocoapods xcode8 auth0

我试图使用版本> Lock(https://github.com/auth0/Lock.iOS-OSX)的1.24,但是我的cocoa repo没有这个版本。我执行pod搜索Lock,我看到以下信息:

Lock (1.13.0)
   A library that uses Auth0 for Authentication with Native Look & Feel
   pod 'Lock', '~> 1.13.0'
   - Homepage: https://github.com/auth0/Lock.iOS-OSX
   - Source:   https://github.com/auth0/Lock.iOS-OSX.git
   - Versions: 1.13.0, 1.12.1, 1.12.0, 1.11.3, 1.11.2, 1.11.1

回购中的版本是1.27,我的回购旧版。我尝试使用pod repo更新进行更新,但仍然无法使用 ¿有人可以帮助我吗?

enter image description here

我试图使用这个podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

target 'TalkClassTest' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TalkClassTest

  target 'TalkClassTestTests' do
   inherit! :search_paths
    pod 'Lock', '~> 1.24'
  end
end

但是当我执行pod install时,我获得了这个错误:

[!] Unable to satisfy the following requirements:

- `Lock (~> 1.24)` required by `Podfile`

None of your spec sources contain a spec satisfying the dependency: `Lock (~> 1.24)`.

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.
MacBook-Air-de-Randall:TalkClassTest Randal$ 

1 个答案:

答案 0 :(得分:1)

感谢大家,应用的解决方案是执行以下命令:pod repo remove masterpod setup之后

相关问题