我按照文档中的说明进行了安装 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 或更高版本。
如果您的 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/