package.json < /p>
"dependencies": {
"@react-native-async-storage/async-storage": "^2.0.0",
"@react-native-firebase/app": "^21.4.0",
"@react-native-firebase/auth": "^21.4.0",
"@react-native-firebase/firestore": "^21.4.0",
"@react-navigation/bottom-tabs": "^6.5.0",
"@react-navigation/native": "^6.1.0",
"@react-navigation/native-stack": "^6.9.0",
"axios": "^1.7.7",
"firebase": "^11.0.1",
"react": "18.3.1",
"react-native": "0.75.4",
"react-native-calendars": "^1.1307.0",
"react-native-get-random-values": "^1.11.0",
"react-native-paper": "^5.12.5",
"react-native-safe-area-context": "^4.11.1",
"react-native-screens": "^4.0.0",
"react-native-svg": "^15.8.0",
"react-native-vector-icons": "^10.2.0",
"react-native-video": "^6.7.0",
"react-native-webview": "^13.12.3",
"uuid": "^11.0.2"
},
< /code>
podfile < /p>
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, '14.0'
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'app' do
use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true
config = use_native_modules!
use_modular_headers!
pod 'RNFBApp', path: '../node_modules/@react-native-firebase/app'
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'nanopb', :modular_headers => true
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true,
:fabric_enabled => true,
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'apptest' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-nativ ... #L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
)
end
end
< /code>
Ich habe einige Ergänzungen zu meinem Podfile vorgenommen, wie auf der React Native Firebase -Website empfohlen. Ich bemerkte, dass einige Firebase -Dateien fehlten, also fügte ich sie hinzu. Obwohl es den Pfad für das RNFBApp -Modul bereitstellt, scheint es immer noch zu fehlen. Ich habe versucht, die POD-Installation auszuführen-Repo-Update und das Löschen des Verzeichnisses podfile.lock- und Pods, bevor sie neu installiert werden, aber dieses Problem bleibt bestehen.
Fehler: Natives Modul RNFBAppModule nicht gefunden. Wiederholen Sie das Modul erneut, um Schritte zu installieren, zu ve ⇐ IOS
-
- Similar Topics
- Replies
- Views
- Last post