小编Luk*_*kas的帖子

React Native 构建失败 ios/Pods/Headers/Public/glog/glog/logging.h:509:1:注意:命名空间“google”从此处开始命名空间 google

我想让我的应用程序为推送通知做好准备。因此,我将 Expo Notifications 与 React-Native-Firebase 一起使用(它是一个裸工作流程应用程序)。Mi错误来自Podfile。对于 firebase 我需要添加use_frameworks!

但比我得到这个错误:

node_modules/react-native/React/Base/RCTBridge.m:17:9: fatal error: 'RCTDevLoadingViewProtocol.h' file not found
#import "RCTDevLoadingViewProtocol.h"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Run Code Online (Sandbox Code Playgroud)

在 Github 上,我发现要修复此错误,我需要删除use_frameworks!. 但如果我删除它,我会收到以下错误:

ios/Pods/Headers/Public/glog/glog/logging.h:509:1: note: namespace 'google' begins here
namespace google {
^
1 error generated.
Run Code Online (Sandbox Code Playgroud)

有解决方案来解决这个问题吗?这是我的版本:

  • "@expo/react-native-action-sheet": "^3.13.0",
  • "@fortawesome/free-brands-svg-icons": "^6.1.1",
  • "@fortawesome/pro-light-svg-icons": "^6.1.1",
  • "@fortawesome/pro-regular-svg-icons": "^6.1.1",
  • "@fortawesome/pro-solid-svg-icons": "^6.1.1",
  • "@fortawesome/react-native-fontawesome": "^0.2.7",
  • "@invertase/react-native-apple-authentication": "^2.2.0",
  • "@openspacelabs/react-native-zoomable-view": "^2.0.4",
  • "@react-native-community/netinfo": "^8.3.0",
  • "@react-native-firebase/app": "^14.11.0",
  • "@react-native-google-signin/google-signin": "^7.2.2",
  • "@react-navigation/bottom-tabs": "^6.3.1",
  • "@react-navigation/stack": "^6.2.1",
  • "日期-fns": "^2.28.0",
  • "世博会": "~45.0.0",
  • "expo-image-picker": "^13.1.1",
  • "expo-localization": "^13.0.0",
  • "博览会地点": "^14.2.2",
  • "expo-notifications": …

react-native expo react-native-firebase expo-notifications

5
推荐指数
0
解决办法
1208
查看次数