首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何修复pod的不兼容版本--“反应性本机对讲机”

如何修复pod的不兼容版本--“反应性本机对讲机”
EN

Stack Overflow用户
提问于 2022-04-25 08:56:22
回答 1查看 381关注 0票数 0

我遇到了一些问题,我的反应本机项目,建立对讲机信使。我已经设置了对讲机文件上的指令。然而,当我使用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内部的代码

代码语言:javascript
运行
复制
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

对讲机版本:

代码语言:javascript
运行
复制
"react-native-intercom": "^21.1.1",
"@intercom/intercom-react-native": "^3.0.0",
EN

回答 1

Stack Overflow用户

发布于 2022-07-21 13:43:10

您正在尝试manual安装react-native-intercom,对于内部通信集成文档 --不用担心使用与cd ios & pod installnpx pod-install的自动链接,这个库也将自动链接。

因此,请从您的pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'中删除这一行Podfile,然后再试一次。它也会起作用。

经以下证实:

代码语言:javascript
运行
复制
Intercom RN: "@intercom/intercom-react-native": "^3.0.5"
ReactNative: `0.66.2`
iOS: `15.5`

希望这能帮到你。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71996855

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档