-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.platform: expotype: bugNew bug reportNew bug report
Description
MAINTAINER UPDATE:
we have something that works below for expo users, see this comment: #6332 (comment)
this issue will be locked for discussion as it attracts people attempting to use or describe use of modular_headers which we must emphasize you cannot do, you will not be able to get support for build errors if you do that
Issue
pod install not working with the following error:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
How to reproduce
expo init Test --npm- Select "Bare workflow -> minimal"
cd Testnpm i @react-native-firebase/analytics @react-native-firebase/appcd iospod install- Error appears
If your prefer I created a repo: https://github.com/RodolfoGS/FirebaseCoreInternal-issue
git clone git@github.com:RodolfoGS/FirebaseCoreInternal-issue.gitcd FirebaseCoreInternal-issue/npm icd iospod install- Error happens
This happens with all Firebase dependences, I tested with:
- @react-native-firebase/analytics
- @react-native-firebase/app
- @react-native-firebase/crashlytics
- @react-native-firebase/dynamic-links
- @react-native-firebase/remote-config
Project Files
Javascript
Click To Expand
package.json:
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@react-native-firebase/analytics": "^15.0.0",
"@react-native-firebase/app": "^15.0.0",
"expo": "~45.0.0",
"expo-splash-screen": "~0.15.1",
"expo-status-bar": "~1.3.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-web": "0.17.7"
},
"devDependencies": {
"@babel/core": "^7.12.9"
},
"private": true
}firebase.json for react-native-firebase v6:
# N/AiOS
Click To Expand
ios/Podfile:
- I'm not using Pods
- I'm using Pods and my Podfile looks like:
# N/AAppDelegate.m:
// N/AAndroid
Click To Expand
Have you converted to AndroidX?
- my application is an AndroidX application?
- I am using
android/gradle.settingsjetifier=truefor Android compatibility? - I am using the NPM package
jetifierfor react-native compatibility?
android/build.gradle:
// N/Aandroid/app/build.gradle:
// N/Aandroid/settings.gradle:
// N/AMainApplication.java:
// N/AAndroidManifest.xml:
<!-- N/A -->Environment
Click To Expand
react-native info output:
OUTPUT GOES HERE
- Platform that you're experiencing the issue on:
- iOS
- Android
- iOS but have not tested behavior on Android
- Android but have not tested behavior on iOS
- Both
react-native-firebaseversion you're using that has this issue:15.0.0
Firebasemodule(s) you're using that has the issue:@react-native-firebase/analytics
- Are you using
TypeScript?Y/N&VERSION
- 👉 Check out
React Native FirebaseandInvertaseon Twitter for updates on the library.
idrisdopico, byanes, bombillazo, DevJett, todorone and 17 moretrymbill, tux2nicolae, maciejpankanin, idrisdopico, byanes and 3 more
Metadata
Metadata
Assignees
Labels
help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.platform: expotype: bugNew bug reportNew bug report