iOS 上的 React Native:重新定义模块“Firebase”

问题描述 投票:0回答:1

当我将 firebase 添加到我的项目中时,我收到此错误

/Users/mac/Projects/mobile/texknoter/ios/Pods/Firebase/CoreOnly/Sources/module.modulemap:1:8:错误:重新定义模块“Firebase”

模块 Firebase { ^ /Users/mac/Library/Developer/Xcode/DerivedData/Texknoter-gpxrhbzgwlqljfgxhvvsyxmpufnv/SourcePackages/checkouts/firebase-ios-sdk/CoreOnly/Sources/module.modulemap:1:8:注意:先前在此处定义

模块 Firebase { ^ /Users/mac/Library/Developer/Xcode/DerivedData/Texknoter-gpxrhbzgwlqljfgxhvvsyxmpufnv/Build/Intermediates.noindex/Texknoter.build/Debug-iphonesimulator/Texknoter.build/Objects-normal/x86_64/AppDelegate.dia:1:1:警告:无法读取序列化诊断文件:错误(“无法打开诊断文件”)(在项目“Texknoter”的目标“Texknoter”中)

ios firebase react-native
1个回答
0
投票

将 React Native Firebase 添加到块内的 React Native ios 项目

target 'app' do

end

添加

pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app'

此解决方案考虑您将 npm 包

@react-native-firebase/app
作为 package.json 中的依赖项,并且您的项目名称是 app

© www.soinside.com 2019 - 2024. All rights reserved.