我遇到了一些问题,我的反应本机项目,建立对讲机信使。我已经设置了对讲机文件上的指令。然而,当我使用Pod安装时,我得到了两个错误。
好了!CocoaPods找不到与pod“对讲机”兼容的版本: 在Podfile中: Intercom本机(来自
../node_modules/@intercom/intercom-react-native
)被解析为3.0.0,这取决于对讲机(~> 12.0.0) react本机对讲机(来自../node\_modules/react-native-intercom
)被解析为21.1.1,其中 取决于对讲机(~> 10)
以下是PodFile内部的代码
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'
target 'Mobapp' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'
target 'MobappTests' 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!()
# post_install do |installer|
# react_native_post_install(installer)
# __apply_Xcode_12_5_M1_post_install_workaround(installer)
# end
end
对讲机版本:
"react-native-intercom": "^21.1.1",
"@intercom/intercom-react-native": "^3.0.0",
发布于 2022-07-21 13:43:10
您正在尝试manual
安装react-native-intercom
,对于内部通信集成文档 --不用担心使用与cd ios & pod install
或npx pod-install
的自动链接,这个库也将自动链接。
因此,请从您的pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'
中删除这一行Podfile
,然后再试一次。它也会起作用。
经以下证实:
Intercom RN: "@intercom/intercom-react-native": "^3.0.5"
ReactNative: `0.66.2`
iOS: `15.5`
希望这能帮到你。
https://stackoverflow.com/questions/71996855
复制相似问题