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.69k stars 2.21k forks source link

[πŸ›] [πŸ”₯ ] IOS Simulator not working after update to version 10.8.0 #4914

Closed gjpsiqueira closed 3 years ago

gjpsiqueira commented 3 years ago

Issue

Hey people! I'm trying to use the latest version from React Native Firebase to use the firebase.auth().useEmulator(url: string). However my app not run IOS Simulator. I updated all packages and then update pods with cd ios && pod install --repo-update, but not working. When I run npx react-native run-ios, the following outputs

In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Uri.h:23:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/String.h:27:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Conv.h:116:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Demangle.h:19:
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/FBString.h:1789:72: warning: possible misuse of comma operator here [-Wcomma]
                  "basic_fbstring: null pointer initializer not valid"),
                                                                       ^
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/FBString.h:1788:15: note: cast expression to void to silence warning
           : (throw_exception<std::logic_error>(
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              static_cast<void>(
In file included from /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/Uri.cpp:17:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Uri.h:23:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/String.h:27:
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Conv.h:1266:44: warning: possible misuse of comma operator here [-Wcomma]
      [&](Tgt res) { return void(out = res), src; });
                                           ^
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Conv.h:1266:29: note: cast expression to void to silence warning
      [&](Tgt res) { return void(out = res), src; });
                            ^~~~~~~~~~~~~~~
                            static_cast<void>( )
In file included from /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/Uri.cpp:17:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/Uri.h:23:
In file included from /Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/String.h:31:
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/ScopeGuard.h:125:52: warning: possible misuse of comma operator here [-Wcomma]
      auto catcher = []() -> R { warnAboutToCrash(), std::terminate(); };
                                                   ^
/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly/folly/ScopeGuard.h:125:34: note: cast expression to void to silence warning
      auto catcher = []() -> R { warnAboutToCrash(), std::terminate(); };
                                 ^~~~~~~~~~~~~~~~~~
                                 static_cast<void>()
warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Flipper-Folly' from project 'Pods')

CompileC /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/Unistd.o /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/portability/Unistd.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Flipper-Folly' from project 'Pods')
    cd /Users/user/app/app/app/app/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios10.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Index/DataStore -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/Flipper-Folly/include -I/Users/user/app/app/app/app/ios/Pods/Headers/Private -I/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/Headers/Public -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-Glog -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/libevent -I/Users/user/app/app/app/app/ios/Pods/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/boost-for-react-native -I/Users/user/app/app/app/app/ios/Pods/Flipper-DoubleConversion -I/Users/user/app/app/app/app/ios/Pods/libevent/include -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources-normal/x86_64 -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources/x86_64 -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources -F/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/Flipper-Folly -F/Users/user/app/app/app/app/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti -fexceptions -std=c++14 -Wno-error -Wno-unused-local-typedefs -Wno-unused-variable -Wno-sign-compare -Wno-comment -Wno-return-type -Wno-global-constructors -include /Users/user/app/app/app/app/ios/Pods/Target\ Support\ Files/Flipper-Folly/Flipper-Folly-prefix.pch -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/Unistd.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/Unistd.dia -c /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/portability/Unistd.cpp -o /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/Unistd.o

CompileC /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/UniqueInstance.o /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/detail/UniqueInstance.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Flipper-Folly' from project 'Pods')
    cd /Users/user/app/app/app/app/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios10.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Index/DataStore -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/Flipper-Folly/include -I/Users/user/app/app/app/app/ios/Pods/Headers/Private -I/Users/user/app/app/app/app/ios/Pods/Headers/Private/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/Headers/Public -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/Flipper-Glog -I/Users/user/app/app/app/app/ios/Pods/Headers/Public/libevent -I/Users/user/app/app/app/app/ios/Pods/Flipper-Folly -I/Users/user/app/app/app/app/ios/Pods/boost-for-react-native -I/Users/user/app/app/app/app/ios/Pods/Flipper-DoubleConversion -I/Users/user/app/app/app/app/ios/Pods/libevent/include -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources-normal/x86_64 -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources/x86_64 -I/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/DerivedSources -F/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/Flipper-Folly -F/Users/user/app/app/app/app/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti -fexceptions -std=c++14 -Wno-error -Wno-unused-local-typedefs -Wno-unused-variable -Wno-sign-compare -Wno-comment -Wno-return-type -Wno-global-constructors -include /Users/user/app/app/app/app/ios/Pods/Target\ Support\ Files/Flipper-Folly/Flipper-Folly-prefix.pch -MMD -MT dependencies -MF /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/UniqueInstance.d --serialize-diagnostics /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/UniqueInstance.dia -c /Users/user/app/app/app/app/ios/Pods/Flipper-Folly/folly/detail/UniqueInstance.cpp -o /Users/user/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/UniqueInstance.o
warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'Flipper-Folly' from project 'Pods')

warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'leveldb-library' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'react-native-image-picker' from project 'Pods')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the app editor. (in target 'app' from project 'app')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'gRPC-C++' from project 'Pods')
warning: no rule to process file '/Users/user/app/app/app/app/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/user/app/app/app/app/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/user/app/app/app/app/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'abseil' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.7.99. (in target 'gRPC-Core' from project 'Pods')
* BUILD FAILED **
The following build commands failed:
CompileC /Users/yser/Library/Developer/Xcode/DerivedData/app-fkwwyvkwcvyprvbybjoizyklomsh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/VirtualEventBase.o /Users/yser/app/app/app/app/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Project Files

Javascript

Click To Expand

#### `package.json`: ```json { "name": "app", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@react-native-community/checkbox": "^0.5.5", "@react-native-community/cli-debugger-ui": "4.7.0", "@react-native-community/datetimepicker": "^3.0.6", "@react-native-community/masked-view": "^0.1.10", "@react-native-firebase/app": "^10.8.0", "@react-native-firebase/auth": "^10.8.0", "@react-native-firebase/database": "^10.8.0", "@react-native-firebase/firestore": "^10.8.0", "@react-native-picker/picker": "^1.9.10", "@react-navigation/bottom-tabs": "^5.11.2", "@react-navigation/drawer": "^5.10.4", "@react-navigation/material-bottom-tabs": "^5.3.10", "@react-navigation/native": "^5.7.6", "@react-navigation/stack": "^5.9.3", "axios": "^0.20.0", "cep-promise": "^4.0.2", "formik": "^2.2.1", "moment": "^2.29.1", "prop-types": "^15.7.2", "react": "16.13.1", "react-native": "0.63.3", "react-native-awesome-alerts": "^1.4.2", "react-native-device-screen-switcher": "^0.2.0", "react-native-elements": "^3.2.0", "react-native-gesture-handler": "^1.8.0", "react-native-get-random-values": "^1.5.0", "react-native-image-picker": "^2.3.4", "react-native-keyboard-aware-scroll-view": "^0.9.3", "react-native-masked-text": "^1.13.0", "react-native-modal-datetime-picker": "^9.1.0", "react-native-numeric-input": "^1.8.3", "react-native-paper": "^4.4.1", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "^1.13.1", "react-native-safe-area-context": "^3.1.8", "react-native-screens": "^2.11.0", "react-native-snap-carousel": "^3.9.1", "react-native-svg": "^12.1.0", "react-native-vector-icons": "^7.1.0", "react-redux": "^7.2.1", "redux": "^4.0.5", "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0", "uuid": "^8.3.2", "yup": "^0.29.3" }, "devDependencies": { "@babel/core": "^7.12.3", "@babel/runtime": "^7.12.1", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.5.2", "eslint": "^7.11.0", "jest": "^26.5.3", "metro-react-native-babel-preset": "^0.63.0", "react-native-svg-transformer": "^0.14.3", "react-test-renderer": "16.13.1" }, "jest": { "preset": "react-native" } } ``` #### `firebase.json` for react-native-firebase v6: ```json { "emulators": { "auth": { "port": 9099 }, "functions": { "port": 5001 }, "firestore": { "port": 8080 }, "database": { "port": 9000 }, "ui": { "enabled": true } } } ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '10.0' target 'app' do config = use_native_modules! use_react_native!(:path => config["reactNativePath"]) target 'appTests' do inherit! :complete # Pods for testing end # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. use_flipper! post_install do |installer| flipper_post_install(installer) end end target 'app-tvOS' do # Pods for app-tvOS target 'app-tvOSTests' do inherit! :search_paths # Pods for testing end end ``` #### `AppDelegate.m`: ```objc #import #import "AppDelegate.h" #import #import #import #ifdef FB_SONARKIT_ENABLED #import #import #import #import #import #import static void InitializeFlipper(UIApplication *application) { FlipperClient *client = [FlipperClient sharedClient]; SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client addPlugin:[FlipperKitReactPlugin new]]; [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; [client start]; } #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if([FIRApp defaultApp] == nil) { [FIRApp configure]; } #ifdef FB_SONARKIT_ENABLED InitializeFlipper(application); #endif RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"app" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; return YES; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #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:** ``` $ react-native info info Fetching system and libraries information... System: OS: macOS 10.15.7 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 60.46 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.18.3 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.6 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 28, 29 Build Tools: 28.0.3, 29.0.2, 30.0.2 System Images: android-28 | Google Play Intel x86 Atom, android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 11.7/11E801a - /usr/bin/xcodebuild Languages: Java: 1.8.0_222 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.3 => 0.63.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found ``` - **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:** - `10.8.0` - **`Firebase` module(s) you're using that has the issue:** - `N/A` - **Are you using `TypeScript`?** - `N` & `VERSION`


andersonaddo commented 3 years ago

You sure this has to do with us? All the logs are pointing to Flipper

gjpsiqueira commented 3 years ago

Hi, andersonaddo! That's happens after to update the React Native Firebase to version 10.08. I disable the Flipper commenting the lines on the Podfile

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  # use_flipper!
  # post_install do |installer|
  #   flipper_post_install(installer)
  # end

It worked! It will be there's some relation with React Native Firebase ?

mikehardy commented 3 years ago

There is no relation between Flipper and react-native-firebase, this is a flipper problem of some sort for you. What is it? Really hard to say, it's not our module. You might try npx react-native-clean-project to make sure you are building fresh?