1
1

More than 3 years have passed since last update.

CocoaPodsに最新バージョンがない場合

Posted at

はじめに

CocoaPodsを使ってライブラリを入れたいが、CocoaPodsに最新バージョンがない場合の対処法

開発環境

Xcode11
Swift4.2

状況

pod 'Analytical', '~> 0.9.1'
をすると、下記エラーが発生する。

CocoaPodsのAnalyticalを見ると、「Analytical 0.8.0」とあるので、最新は0.8.0と認識されているようだ。

[!] CocoaPods could not find compatible versions for pod "Analytical/Log":
  In Podfile:
    Analytical/Log (= 0.9.1)

None of your spec sources contain a spec satisfying the dependency: `Analytical/Log (= 0.9.1)`.

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

対処法

pod 'Analytical', :git => 'https://github.com/Legoless/Analytical.git', :branch => 'master'

このようにすると、masterから最新版を取得してくれる。

他のライブラリでも実施可能。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1