标签: podfile-lock

cocoapods中"〜>"的用法是什么?

我想知道"〜>"用于什么,因为我发现它们在下面是相同的:

pod 'AFNetworking','~> 2.0.3'

pod 'AFNetworking','2.0.3'
Run Code Online (Sandbox Code Playgroud)

ios cocoapods podfile podfile-lock

51
推荐指数
4
解决办法
8430
查看次数

为什么“Podfile.lock”在没有任何更改的情况下更改“pod install”上的“SPEC CHECKSUMS”部分?

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

如果我运行pod install,则不进行任何操作,然后pod install在几分钟后运行SPEC CHECKSUMS我的Podfile.lock更改部分。

为什么?

pod --version
1.9.3

"react-native": "0.63.2",
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

ios cocoapods react-native podfile podfile-lock

16
推荐指数
0
解决办法
1757
查看次数

用于生成lockfile(1.5.3)的CocoaPods版本高于当前可执行文件的版本(1.5.2)

$pod install它上面发出警告并失败

用于生成lockfile(1.5.3)的CocoaPods版本高于当前可执行文件的版本(1.5.2)

它试图说什么?

macOs:10.11.6 osx el capitan

我的pod版本是:1.5.3

什么是"当前执行"(1.5.2)意味着什么?

如何更新?

ios cocoapods react-native podfile-lock

11
推荐指数
3
解决办法
9814
查看次数

Error running pod install: How to solve this problem?

我进行了很多搜索,但不幸的是我没有找到解决方案。\n对于我的 flutter 项目,我在 pubspec.yaml 文件中添加了 Firebase 插件,从那时起我就无法再在我的 iPhone 上运行该项目了。

\n

它说:Exception: Error running pod install

\n

到目前为止我尝试过的:删除 podfile 并运行pod install --repo-update but it didn't work.\nCan someone PLEASE help me? Thank you so much!

\n

这是我尝试运行该项目时终端显示的内容:

\n
lib/main.dart:1\nAutomatically signing iOS for device deployment using specified development team in Xcode project: 7F67C53MP2\nCocoaPods' output:\n\xe2\x86\xb3\n      Preparing\n    Analyzing dependencies\n    Inspecting targets to integrate\n      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\nFetching external sources\n    -> Fetching podspec for `Flutter` from `Flutter`\n    -> …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods flutter podfile podfile-lock

10
推荐指数
2
解决办法
2万
查看次数

如何删除Podfile.lock?

Xcode 最近更新了,我的代码在 STPAPIClient.m 中给出了此错误:

Incompatible block pointer types sending '__strong STPAPIResponseBlock _Nonnull' (aka 'void (^__strong)(__strong ResponseType, NSHTTPURLResponse *__strong, NSError *__strong)') to parameter of type 'void (^)(STPSource *__strong, NSHTTPURLResponse *__strong, NSError *__strong)'
Run Code Online (Sandbox Code Playgroud)

编辑:我找到了 podfile.lock,但每次删除它并安装 pod 时,我都会检查项目目录,Podfile.lock 仍然存在。有谁知道如何删除它?谢谢!

xcode cocoapods swift podfile-lock

7
推荐指数
2
解决办法
2万
查看次数

Pod 安装未在 Flutter 应用程序中安装 Pod

我的 flutter 应用程序在 android 模拟器上运行良好,但在尝试在 ios 模拟器上启动时,它pod install 永远运行该命令。

这是结果

于是我打开Xcode,发现这个错误:

沙箱与 Podfile.lock 不同步。运行“pod install”或更新你的 CocoaPods 安装。

这是我的podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  generated_key_values = {}
  skip_line_start_symbols = …
Run Code Online (Sandbox Code Playgroud)

xcode ios cocoapods flutter podfile-lock

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

cocoapods ×6

podfile-lock ×6

ios ×5

podfile ×3

flutter ×2

react-native ×2

xcode ×2

swift ×1