首页 > 解决方案 > 为什么 `Podfile.lock` 会更改 `pod install` 上的 `SPEC CHECKSUMS` 部分,而没有任何更改?

问题描述

我没有将我的Pods目录签入源代码管理。

如果我运行pod install,什么都不碰,然后在pod install几分钟后运行SPEC CHECKSUMSPodfile.lock更改的部分。

为什么?

pod --version
1.9.3

"react-native": "0.63.2",

Podfile

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

platform :ios, '11.0'

target 'Myapp' do
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])
end

标签: iosreact-nativecocoapodspodfilepodfile-lock

解决方案


推荐阅读