invertase / react-native-firebase

πŸ”₯ A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.68k stars 2.21k forks source link

[πŸ›] Bug Report Title - Module Map Not Found!!! #7952

Closed sakthivasan-kryptos closed 2 months ago

sakthivasan-kryptos commented 2 months ago

Issue

Describe your issue here /Users/apple/Desktop/Rowgistic/Hpm_Native/ios/Pods/Target Support Files/gRPC-C++/gRPC-C++-dummy.m module map file '/Users/apple/Desktop/Rowgistic/Hpm_Native/ios/Pods/Headers/Private/grpc/gRPC-Core.modulemap' not found

Project Files

Javascript

Click To Expand

#### `package.json`: ```json # { "name": "-----", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@gorhom/bottom-sheet": "^4.6.1", "@notifee/react-native": "^7.8.2", "@react-native-async-storage/async-storage": "^1.21.0", "@react-native-community/datetimepicker": "^7.6.2", "@react-native-firebase/analytics": "^18.7.2", "@react-native-firebase/app": "^18.7.2", "@react-native-firebase/app-distribution": "^18.7.2", "@react-native-firebase/auth": "^18.7.2", "@react-native-firebase/crashlytics": "^18.7.2", "@react-native-firebase/firestore": "^18.7.2", "@react-native-firebase/messaging": "^18.7.2", "@react-native-firebase/storage": "^18.7.2", "@react-native-masked-view/masked-view": "^0.3.1", "@react-native-picker/picker": "^2.6.1", "@react-navigation/bottom-tabs": "^6.5.11", "@react-navigation/drawer": "^6.6.6", "@react-navigation/material-top-tabs": "^6.6.5", "@react-navigation/native": "^6.1.9", "@react-navigation/native-stack": "^6.9.17", "axios": "^1.6.2", "deprecated-react-native-prop-types": "^5.0.0", "react": "18.2.0", "react-moment": "^1.1.3", "react-native": "0.72.7", "react-native-audio-recorder-player": "^3.6.10", "react-native-base64": "^0.2.1", "react-native-big-calendar": "^4.13.0", "react-native-blob-util": "^0.19.8", "react-native-calendars": "^1.1304.1", "react-native-device-info": "^11.1.0", "react-native-document-picker": "^9.1.1", "react-native-element-dropdown": "^2.12.1", "react-native-fast-image": "^8.6.3", "react-native-gesture-handler": "^2.14.0", "react-native-image-crop-picker": "^0.41.1", "react-native-image-picker": "^7.1.0", "react-native-linear-gradient": "^2.8.3", "react-native-pager-view": "^6.2.3", "react-native-paper": "^5.11.3", "react-native-pdf": "^6.7.4", "react-native-permissions": "^4.1.5", "react-native-push-notification": "^8.1.1", "react-native-reanimated": "^3.7.1", "react-native-safe-area-context": "^4.7.4", "react-native-screens": "^3.27.0", "react-native-search-bar": "^3.5.1", "react-native-sectioned-multi-select": "^0.10.0", "react-native-skeleton-placeholder": "^5.2.4", "react-native-snap-carousel": "^3.9.1", "react-native-svg": "^15.3.0", "react-native-tab-view": "^3.5.2", "react-native-vector-icons": "^10.0.2", "react-native-video": "^6.1.2", "react-redux": "^9.1.0", "redux": "^5.0.1" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/eslint-config": "^0.72.2", "@react-native/metro-config": "^0.72.11", "@tsconfig/react-native": "^3.0.0", "@types/react": "^18.0.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.76.8", "prettier": "^2.4.1", "react-test-renderer": "18.2.0", "typescript": "4.8.4" }, "engines": { "node": ">=16" } } ``` #### `firebase.json` for react-native-firebase v6: ```json # "react-native": { "crashlytics_auto_collection_enabled": true, "crashlytics_debug_enabled": true, "crashlytics_ndk_enabled": false } ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like:# 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, min_ios_version_supported 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 => :static $RNFirebaseAsStaticFramework = true # use_frameworks! :linkage => linkage.to_sym end target 'HPMSteel' do use_modular_headers! config = use_native_modules! pod 'Firebase', :modular_headers => true pod 'Firebase/Firestore' pod 'FirebaseCoreInternal', :modular_headers => true pod 'GoogleUtilities', :modular_headers => true pod 'FirebaseCore', :modular_headers => true use_react_native!( :path => config[:reactNativePath], # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." ) target 'HPMSteelTests' do inherit! :complete # Pods for testing end post_install do |installer| # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 react_native_post_install( installer, config[:reactNativePath], :mac_catalyst_enabled => false, # :ccache_enabled => true ) end end ```ruby #source 'https://rubygems.org' # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version ruby ">= 2.6.10" # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper # bound in the template on Cocoapods with next React Native release. gem 'cocoapods', '>= 1.13', '< 1.15' gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' ``` #### `AppDelegate.m`: ```objc //#import "AppDelegate.h" #import #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [FIRApp configure]; self.moduleName = @"HPMSteel"; // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native. self.initialProps = @{}; return [super application:application didFinishLaunchingWithOptions:launchOptions]; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { return [self bundleURL]; } - (NSURL *)bundleURL { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } @end ```


Android

Click To Expand

#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `MainApplication.java`: ```java // N/A ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` System: OS: macOS 14.5 CPU: (8) arm64 Apple M1 Memory: 107.88 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.15.1 path: ~/.nvm/versions/node/v20.15.1/bin/node Yarn: Not Found npm: version: 10.8.2 path: ~/.nvm/versions/node/v20.15.1/bin/npm Watchman: version: 2024.07.15.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /Users/apple/.rbenv/shims/pod SDKs: iOS SDK: Platforms: - DriverKit 23.5 - iOS 17.5 - macOS 14.5 - tvOS 17.5 - visionOS 1.2 - watchOS 10.5 Android SDK: API Levels: - "33" - "34" Build Tools: - 30.0.3 - 33.0.0 - 34.0.0 - 35.0.0 System Images: - android-33 | ARM 64 v8a - android-33 | Google Play ARM 64 v8a - android-33 | Google APIs ATD ARM 64 v8a - android-34 | ARM 64 v8a - android-34 | Intel x86_64 Atom - android-34 | Google APIs ARM 64 v8a - android-34 | Google APIs Intel x86_64 Atom - android-34 | Google Play ARM 64 v8a - android-34 | Google APIs ATD ARM 64 Android NDK: Not Found IDEs: Android Studio: 2024.1 AI-241.18034.62.2411.12071903 Xcode: version: 15.4/15F31d path: /usr/bin/xcodebuild Languages: Java: version: 17.0.12 path: /usr/bin/javac Ruby: version: 3.1.2 path: /Users/apple/.rbenv/shims/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.3 wanted: 0.74.3 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false ``` - **Platform that you're experiencing the issue on**: - [X] iOS - [ ] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `e.g. 5.4.3` - **`Firebase` module(s) you're using that has the issue:** - `e.g. Instance ID` - **Are you using `TypeScript`?** - `N` & `VERSION`


russellwheatley commented 2 months ago

Closing out. Please create an issue and give all details for reproduction πŸ™