当我尝试运行测试代码时出现以下错误
RNFirebase core module was not found natively on iOS, ensure you have correctly included the RNFirebase pod in your projects `Podfile` and have run `pod install`.
See http://invertase.link/ios for the ios setup guide.
22 | import {createDrawerNavigator} from 'react-navigation';
23 | import Profile from './Profile';
> 24 | import {roomID,teamName,events} from './Home';
| ^
25 | import { ChatManager, TokenProvider } from '@pusher/chatkit-client';
26 | import {LocalHost} from './Auth';
27 |
我试图在Podfile中添加路径,但仍然遇到相同的错误。我的podfile如下
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
# Required by RNFirebase
target 'SCA' do
# Uncomment the next line if you're using Swift or would like to use
dynamic frameworks
#use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Firestore', '~> 5.3.0'
#pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios/RNFirebase.podspec'
# Pods for SCA
target 'SCATests' do
inherit! :search_paths
# Pods for testing
end
end
target 'SCA-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for SCA-tvOS
target 'SCA-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
我正在使用本机版本0.55.4 我也想知道我是否需要一个Apple开发者帐户来解决此问题?