ios - 尝试使用 react-native 在 ios 上安装 "@intercom/intercom-react-native"时出错

标签 ios react-native intercom

我按照文档中的说明进行了安装 https://developers.intercom.com/installing-intercom/docs/react-native-installation ,但是当我运行 pod install 命令时,出现以下错误:

➜  ios git:(master) ✗ pod install 
Using Expo modules
Auto-linking React Native module for target `intercomexpo`: intercom-react-native
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "intercom-react-native":
  In Podfile:
    intercom-react-native (from `../node_modules/@intercom/intercom-react-native`)

Specs satisfying the `intercom-react-native (from `../node_modules/@intercom/intercom-react-native`)` dependency were found, but they required a higher minimum deployment target.

最佳答案

@intercom/intercom-react-native 的最新版本(撰写本文时的版本 2.0.1)需要 iOS 13 或更高版本。

enter image description here

如果您的 React Native 应用程序中的 iOS 项目将其部署目标设置为低于 iOS 13.0 的版本,您将在运行 pod install 时收到以下错误:

[!] CocoaPods could not find compatible versions for pod "intercom-react-native"

解决方案是退回到以前的版本。

如果使用 NPM:

npm install @intercom/intercom-react-native@1.1.1

如果使用 yarn :

yarn add @intercom/intercom-react-native@1.1.1

关于ios - 尝试使用 react-native 在 ios 上安装 "@intercom/intercom-react-native"时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70771125/

相关文章:

ios - 在我的纹理上绘制形状时,OpenGL 使我的纹理半透明

reactjs - React Native Navigator - 转换和卸载先前的场景

android - 如何使用 puppeteer 进行 react 原生?

javascript - 对讲更新方法不模拟页面刷新

reactjs - 如何在我的 React 应用程序中添加 Intercom 脚本?

ios - 每次打开 View 时模糊效果都会重复

c# - 在 RestSharp 中导入下一组图像

javascript - 无法在 iOS 设备上设置新的谷歌翻译 cookie 值

node.js - 冲突的对等依赖项 : React Native for iOS

Angular 2 和 Intercom.io