pod安装 - Podfile.lock已更新

时间:2014-05-30 14:49:11

标签: cocoapods

我刚刚克隆了一个锁定了几个pod的项目。

pod install我的Podfile.lock被修改后。

为什么?

仅当我pod update时才会更新吗?


Podfile

platform :ios, '6.0'
pod 'SVProgressHUD',    '~> 0.9'
pod 'Reachability',     '~> 3.1.0'
pod 'UIDeviceAddition', '~> 1.0'
pod 'CorePlot',         '~> 1.3'
pod 'RestKit',          '~> 0.20'
pod 'ZipArchive',       '~> 1.1.0'

^ - 未更改 - ^

DIFF

index c82dc53..e408a71 100644
--- a/Podfile.lock
+++ b/Podfile.lock
@@ -1,5 +1,5 @@
 PODS:
-  - AFNetworking (1.3.2)
+  - AFNetworking (1.3.4)
   - CorePlot (1.3)
   - Reachability (3.1.1)
   - RestKit (0.20.3):
@@ -32,14 +32,14 @@ DEPENDENCIES:
   - ZipArchive (~> 1.1.0)

 SPEC CHECKSUMS:
-  AFNetworking: 7f9bcd7c287a75476cd5c61e82fd3380e93e4c54
-  CorePlot: af8307dd1fc013b3d8d97f54db8de0de6d57af84
-  Reachability: 2be6bc2fd2bd31d97f5db33e75e4b29c79e95883
# ...
+  AFNetworking: 80c4e0652b08eb34e25b9c0ff3c82556fe5967b4
+  CorePlot: f62846d49870dcb5a7fffa42f493faf836155578
+  Reachability: 8e9635e3cb4f98e7f825e51147f677ecc694d0e7
# ...

-COCOAPODS: 0.22.3
+COCOAPODS: 0.33.1

2 个答案:

答案 0 :(得分:0)

这可能由于各种原因而发生。例如,pod master存储库已更新,运行pod repo update后有人安装了pods,而在您的计算机上,您仍具有旧版本的存储库。

或者,如果您更改CocoaPods工具版本,也会发生这种情况。校验和已更改,这绝对正常。将新创建的校验和提交到存储库,然后继续使用该工具的较新版本。

答案 1 :(得分:-1)

Pod安装和pod更新共享相同的机器。

Pod安装将锁定Podfile中未更改的依赖项版本。 Pod更新尝试更新任何pod

因此,只有对Podfile进行了更改,podfile.lock才能更改

相关问题