Closed michaelharies closed 4 months ago
I have a successful build from scratch working fine with current versions, steps to reproduce - run this script: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh
I'm not sure exactly what is going on in your project since you have not included a reproducible example and you have deleted our template, but I can guarantee that if you follow the steps to make a react-native + react-native-firebase from scratch that the script I link here does, it will work.
Did you get to fix it?
@VatcheHovigKechichian
I am updating the React Native project react-native@0.63 to 0.73.6. I updated a few modules. It was good.
I am updating the @react-native-firebase/firestore module from 5.x to 19.2 (latest version). I installed the node module and performed pod install. So far, everything has been great.
I executed the project using npx react-native run-ios. I received the following error message when building: Failed Building.
Steps to reproduce Install @react-native-firebase/firestore node module with the latest version - 19.2 Ran pod install Start iOS project with npx react-native run-ios
in the process of runing, will face this error.
React Native Version 0.73.6
Affected Platforms Build - MacOS
MacOS 14.2 Node 18.20.0 Pod 1.15.2 Ruby 3.3.0(2023-12-25)
Stacktrace or Logs
CompileC /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/default_health_check_service.o /Users/administrator/Documents/InstaAccess/ios/Pods/gRPC-C++/src/cpp/server/health/default_health_check_service.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'gRPC-C++' from project 'Pods') cd /Users/administrator/Documents/InstaAccess/ios/Pods /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /Users/administrator/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.4-21E210-aa93b11c43e2d16681ac3fa171344f4f.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/administrator/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 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -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 -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wno-strict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Index.noindex/DataStore @/Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -Wno-comma -Wno-unreachable-code -Wno-shorten-64-to-32 -fno-objc-arc -include /Users/administrator/Documents/InstaAccess/ios/Pods/Target\ Support\ Files/gRPC-C++/gRPC-C++-prefix.pch -MMD -MT dependencies -MF /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/default_health_check_service.d --serialize-diagnostics /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/default_health_check_service.dia -c /Users/administrator/Documents/InstaAccess/ios/Pods/gRPC-C++/src/cpp/server/health/default_health_check_service.cc -o /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/default_health_check_service.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/default_health_check_service.o
BUILD FAILED
The following build commands failed: CompileC /Users/administrator/Library/Developer/Xcode/DerivedData/InstaAccess-fdhgmcckhxsfnrernnqnvehxvqiw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/gRPC-C++.build/Objects-normal/x86_64/gRPC-C++-dummy.o /Users/administrator/Documents/InstaAccess/ios/Pods/Target\ Support\ Files/gRPC-C++/gRPC-C++-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'gRPC-C++' from project 'Pods') (1 failure)
I tried to fix using below ways.
Removing DerivedDada of Xcode Pod reinstalling after deintegrating Cocoapods version upgrading But no effect