React Native “FIRMessaging”没有可见的@接口声明选择器“sendMessage:to:withMessageID:timeToLive:”

unhi4e5o  于 2023-01-27  发布在  React
关注(0)|答案(1)|浏览(101)

我正在使用React原生Firebase,在构建应用程序时遇到了一个问题,如下所示(错误消息)。

No visible @interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'

我读了很多博客来解决这个问题,但直到现在,我都不能解决它。

这是我的pod文件。

这是我的package.json文件。
我安装了最新版本的软件包。
我看到一些博客说的是版本,但我不确定他们的意思是哪个版本。

{
  "name": "hemscore",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "release": "cd android && gradlew assembleRelease"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.15.2",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-native-community/push-notification-ios": "^1.8.0",
    "@react-native-community/viewpager": "^5.0.11",
    "@react-native-firebase/app": "^11.2.0",
    "@react-native-firebase/auth": "^11.2.0",
    "@react-native-firebase/firestore": "^11.2.0",
    "@react-native-firebase/messaging": "^12.1.0",
    "@react-native-picker/picker": "^1.15.0",
    "@react-navigation/drawer": "^5.12.5",
    "@react-navigation/material-top-tabs": "^5.3.15",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.4",
    "@reduxjs/toolkit": "^1.5.1",
    "@types/jest": "^26.0.22",
    "@types/node": "^14.14.41",
    "@types/react": "^17.0.3",
    "@types/react-dom": "^17.0.3",
    "@types/react-redux": "^7.1.16",
    "add": "^2.0.6",
    "firebase": "^8.6.8",
    "flatlist-intro-animations": "^1.3.4",
    "i18n-js": "^3.8.0",
    "lodash.memoize": "^4.1.2",
    "moment": "^2.29.1",
    "react": "17.0.1",
    "react-moment": "^1.1.1",
    "react-native": "0.64.2",
    "react-native-collapsible": "^1.5.3",
    "react-native-dropdown-picker": "^4.0.9",
    "react-native-elements": "^3.4.0",
    "react-native-fast-image": "^8.3.4",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-gifted-chat": "^0.16.3",
    "react-native-indicators": "^0.17.0",
    "react-native-localize": "^2.0.2",
    "react-native-multiple-select": "^0.5.6",
    "react-native-parallax-header": "^1.1.4",
    "react-native-push-notification": "^7.4.0",
    "react-native-reanimated": "^2.1.0",
    "react-native-restart": "^0.0.17",
    "react-native-safe-area-context": "^3.2.0",
    "react-native-screens": "^3.1.1",
    "react-native-scrollable-tab-view": "^1.0.0",
    "react-native-simple-toast": "^1.1.3",
    "react-native-status-bar-height": "^2.6.0",
    "react-native-tab-view": "^2.16.0",
    "react-native-vector-icons": "^8.1.0",
    "react-redux": "^7.2.3",
    "redux": "^4.0.5",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.1.3",
    "typescript": "^4.2.4",
    "yarn": "^1.22.10"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-test-renderer": "17.0.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

任何帮助都很感激。

fzsnzjdm

fzsnzjdm1#

以下命令已为我解决了此问题...

cd ios && pod update --verbose

相关问题