web-dev-qa-db-ja.com

「ポッド更新」が最新バージョンに更新されない

これが、プロジェクトで使用する私のpodfileです。

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'AFNetworking', '~> 2.0'
pod 'GoogleMaps'
pod 'MONActivityIndicatorView'
pod 'NYXImagesKit'
pod 'MagicalRecord'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'Countly'

問題は、cocoapods 0.39がAFNetworkingをバージョン2.5.4に更新していることですが、これは誤りです。最新バージョンは2.6.3です。また、facebook SDKは4.4(最新は4.8)に更新されています。

Podsフォルダーと.lockファイルを削除しようとしましたが、役に立ちません

また、cocoapodsキャッシュをクリーンアップしようとしましたが、役に立ちませんでした:

MACMINI:myproject myusername$ pod cache clean --all
MACMINI:myproject myusername$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.4)
Installing Bolts (1.2.0)
Installing Countly (15.06.01)
Installing FBSDKCoreKit (4.4.0)
Installing FBSDKLoginKit (4.4.0)
Installing FBSDKShareKit (4.4.0)
Installing GoogleMaps (1.10.1)
Installing MONActivityIndicatorView (0.0.3)
Installing MagicalRecord (2.3.0)
Installing NYXImagesKit (2.3)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `myproject.xcworkspace` for this project from now on.
Sending stats
Sending stats
Pod installation complete! There are 9 dependencies from the Podfile and 10 total pods installed.
16
Serhii

私の場合、Neonは更新されません。展開ターゲットが原因でした。

かわった platform :ios, '8.0'からplatform :ios, '10.0'

更新は正常に機能しました。

13
Bojacob

CocoaPodsがポッドの最新バージョンを取得しない理由の1つは、以前のバージョンを必要とする別の依存関係である可能性があります。

たとえば、PodAの最新バージョンが2.6で、Podfileにこれがあるとします。

pod 'PodA', '~> 2.0'
pod 'PodB'

あなたには知られていない、PodBには次の依存関係があります: "PodA": "〜> 2.5.4"

CocoaPodsが依存関係を満たそうとすると、PodBのより強い依存関係制約を満たすことができないため、PodAのバージョン2.6が拒否されます。

これをトラブルシューティングする1つの方法は、「ポッドアップデート」を実行する前に次の環境変数を設定して、CocoaPodsに内部依存関係グラフのデバッグ情報を印刷するよう依頼することです。

export MOLINILLO_DEBUG=1
10

新しいポッドを試してみたところ、最新のものになりました

Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.6.3)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `AfnetworkingPodFic.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

CocoaPodsのキャッシュをクリアしてみてください

あなたは下から方法を見つけることができます

https://Gist.github.com/mbinna/4202236

それが役に立てば幸い :)

0
vinbhai4u

$ポッド更新

端末でこのコマンドを入力し、すべてのポッドを新しいバージョンに更新するを呼び出します

0
vualoaithu

以下のパスにあるポッドキャッシュをクリーンアップし、ポッドインストールを再度実行します。

〜/ライブラリ/ Caches/CocoaPods /

〜/ .cocoapods/repos/ibm-cocoapods-specs

0
Keerthesh