gpt4 book ai didi

React-Native - iOS - CocoaPods 找不到 pod "OpenSSL-Universal": 的兼容版本

转载 作者:行者123 更新时间:2023-12-05 05:29:49 24 4
gpt4 key购买 nike

我想运行“pod install”。我收到警告“[!] use_flipper 已弃用,请在 use_react_native 函数中使用 flipper_configuration 选项”

所以我替换了“use_flipper!”这一行到我的 Podfile 中的“use_flipper!({ 'Flipper-Folly' => '2.3.0' })”。

在此之后,我删除了锁定文件并再次运行“pod install”。

我得到了错误

[!] CocoaPods could not find compatible versions for pod "OpenSSL-Universal":
In Podfile:
Flipper-Folly (= 2.3.0) was resolved to 2.3.0, which depends on
OpenSSL-Universal (= 1.0.2.20)

OpenSSL-Universal (= 1.1.1100)

Specs satisfying the `OpenSSL-Universal (= 1.1.1100), OpenSSL-Universal (= 1.0.2.20)` dependency were found, but they required a higher minimum deployment target.

我的 iOS 部署目标是“13.0”。我已经更改了我的部署目标但没有任何解决方案。有人可以帮助我吗?

我的播客文件:

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

platform :ios, '13.0'
install! 'cocoapods', :deterministic_uuids => false

target 'XXApp' do
config = use_native_modules!

# Flags change depending on the env values.
flags = get_default_flags()

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

pod 'react-native-beacons-manager', :path => '../node_modules/react-native-beacons-manager'

target 'XXAppTests' do
inherit! :complete
# Pods for testing
end

# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!({ 'Flipper-Folly' => '2.3.0' })

post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end

最佳答案

在您的 pod 文件中添加此行:

pod 'OpenSSL-Universal'

替换这一行

  use_flipper!({ 'Flipper-Folly' => '2.3.0' })

  use_flipper!

删除 podfile.lock 和 pods 文件夹,然后运行

pod install

关于React-Native - iOS - CocoaPods 找不到 pod "OpenSSL-Universal": 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74848261/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com