如何检查 facebook 为其 sdk 发布的最新版本

How to check latest version released by facebook for their sdk

我一直在使用fb sdk, 我添加的 pod 文件

连播 'FBSDKCoreKit'

连播'FBSDKLoginKit'

然后使用pod install

它会自动安装最新版本的 pod

但我实际看到的安装的版本是[]是6.5.11

但是发布 facebook sdk 版本是

不是安装 pd 没有 pod 文件中提到的特定版本,自动安装最新版本 ?

如果你想检查 Podfile.lock 它会跟踪安装的每个 Pod 的解析版本。

pod update & Pod Install

When you run pod update PODNAME, CocoaPods will try to find an updated version of the pod PODNAME, without taking into account the version listed in Podfile.lock. It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile).

If you run pod update with no pod name, CocoaPods will update every pod listed in your Podfile to the latest version possible.

了解 pod 安装与 pod 更新

Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods.

Use pod update [PODNAME] only when you want to update pods to a newer version.

所以尝试使用 pod update 而不是 pod install