什么是我们的Xcode项目中的podfile.lock以及为什么使用它?

Jee*_*n_7 10 cocoapods objectmapper swift3

我是Xcodeprojects中使用pod的初学者.我被pod file.lock弄糊涂了.我想将框架"OBJECTMAPPER"更新为2.0以使其与swift 3兼容.但它不会.

为什么不更新到最新版本(2.0).它与pod file.lock有什么关系吗?如下 - >

在此输入图像描述

为什么用它?

更新:podfile 在此输入图像描述

mli*_*dal 2

pod install 不会将 ObjectMapper 更新到最新版本,因为它没有理由这样做。ObjectMapper 作为 UberRides 的依赖项包含在内,并且版本 1.5.0 满足 1 或更高版本的要求。

为了强制更新,您可以将 ObjectMapper 添加到具有所需版本的 podfile 中,例如

pod 'ObjectMapper', '2.0'
Run Code Online (Sandbox Code Playgroud)