我想知道"〜>"用于什么,因为我发现它们在下面是相同的:
pod 'AFNetworking','~> 2.0.3'
pod 'AFNetworking','2.0.3'
Run Code Online (Sandbox Code Playgroud) 我没有将我的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) 在$pod install它上面发出警告并失败
用于生成lockfile(1.5.3)的CocoaPods版本高于当前可执行文件的版本(1.5.2)
它试图说什么?
macOs:10.11.6 osx el capitan
我的pod版本是:1.5.3
什么是"当前执行"(1.5.2)意味着什么?
和
如何更新?
我进行了很多搜索,但不幸的是我没有找到解决方案。\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这是我尝试运行该项目时终端显示的内容:
\nlib/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) 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 仍然存在。有谁知道如何删除它?谢谢!
我的 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)