Trying to compile my project after adding some pods. While compiling it gives below error
'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
Podfile.lock snippet
- FirebaseCore (5.1.1):
- GoogleUtilities/Logger (~> 5.2)
- FirebaseDynamicLinks (3.0.2):
- FirebaseAnalytics (~> 5.1)
- FirebaseInAppMessaging (0.11.0):
- FirebaseAnalytics (~> 5.1)
- FirebaseCore (~> 5.1)
- FirebaseInstanceID (~> 3.2)
- GoogleUtilities/Environment (~> 5.0)
- FirebaseInstanceID (3.2.1):
- FirebaseCore (~> 5.1)
- GoogleUtilities/Environment (~> 5.2)
- FirebaseMessaging (3.1.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- GoogleUtilities/Reachability (~> 5.2)
- Protobuf (~> 3.1)
- FirebaseRemoteConfig (3.0.1):
- FirebaseABTesting (~> 2.0)
- FirebaseAnalytics (~> 5.1)
- FirebaseCore (~> 5.1)
- FirebaseInstanceID (~> 3.2)
- GoogleUtilities/Environment (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- Protobuf (~> 3.5)
- Google/Analytics (2.0.4):
- Google/Core
- GoogleAnalytics (~> 3.12)
- Google/Core (2.0.4):
- GoogleInterchangeUtilities (~> 1.0)
- GoogleNetworkingUtilities (~> 1.0)
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.1)
In the Podfile, change Google/Analytics to GoogleAnalytics. The Google pod is deprecated and not compatible with recent Firebase versions.
An alternative, but not recommended workaround, could be to lock the Firebase version to something less than 5.5.
UPDATE: June 2021: There is a Crashlytics podspec bug that can also cause this issue. The workaround is to explicitly add GoogleUtilities/Environment to the Podfile or move use_frameworks! to the top of the Podfile. Details in https://github.com/firebase/firebase-ios-sdk/issues/8137. The issue will be fixed in the upcoming Firebase 8.3.0 release.
Problem fixed for me by following steps:
Clean the project
Close the Xcode
Delete derived data
If you have already installed the POD, kindly delete the “.xcworkspace” & “Podfile.lock” files
Install pod again
Open “.xcworkspace” and Run
Running pod update fixed this for me
Deleting Pods folder and reinstalling the pods again will fix the issue.
Try This:
Delete the pod files related to Google and Firebase
Install pods via "pod install" command
If pod file contains below pods, update those pods
Google/Analytics to GoogleAnalytics
Google/SignIn to GoogleSignIn
Google/Analytics and Google/SignIn are deprecated.
try to add this plugin :
cordova plugin add cordova-plugin-cocoapod-support --save
After go to platform/ios and run :
pod update
In the podfile, install all pods after uncomment use_frameworks!.
If you already installed pods then remove pods, and install again after uncomment use_frameworks
As simple as that
comment the pod
pod install
uncomment the pod (Make sure there is not version added to pod)
pod install
There you go.
None of the answers listed here worked for me.
The solution that worked for me is:
Clean the project and close the Xcode
Clean the pod using command pod clean
Install the pod again using pod install
Open the project and build that one, it worked
Related
Trying to compile my project after adding some pods. While compiling it gives below error
'GoogleUtilities/GULURLSessionDataResponse.h' file not found
Podfile.lock:
- FBSDKCoreKit (9.1.0):
- FBSDKCoreKit/Basics (= 9.1.0)
- FBSDKCoreKit/Core (= 9.1.0)
- FBSDKCoreKit/Basics (9.1.0)
- FBSDKCoreKit/Core (9.1.0):
- FBSDKCoreKit/Basics
- Firebase/Analytics (3.6.0):
- FirebaseAnalytics (= 3.4.2)
- Firebase/Core (3.6.0):
- Firebase/Analytics
- Firebase/CoreOnly (7.9.0):
- FirebaseCore (= 7.9.0)
- Firebase/Crashlytics (7.9.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 7.9.0)
- Firebase/Messaging (3.6.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.2.0)
- FirebaseAnalytics (3.4.2):
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseCore (7.9.0):
- FirebaseCoreDiagnostics (~> 7.4)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- FirebaseCoreDiagnostics (7.9.0):
- GoogleDataTransport (~> 8.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- nanopb (~> 2.30907.0)
- FirebaseCrashlytics (7.9.0):
- FirebaseCore (~> 7.0)
- FirebaseInstallations (~> 7.0)
- GoogleDataTransport (~> 8.0)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- FirebaseInstallations (7.9.0):
- FirebaseCore (~> 7.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/UserDefaults (~> 7.0)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (1.0.9)
- FirebaseMessaging (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- Flurry-iOS-SDK (10.1.0):
- Flurry-iOS-SDK/FlurrySDK (= 10.1.0)
- Flurry-iOS-SDK/FlurrySDK (10.1.0)
- GoogleDataTransport (8.3.0):
- GoogleUtilities/Environment (~> 7.2)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- GoogleInterchangeUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleIPhoneUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.0)
- GoogleSymbolUtilities (1.1.2)
- GoogleUtilities (1.3.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities/Environment (7.3.1):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (7.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/UserDefaults (7.3.1):
- GoogleUtilities/Logger
- FBSDKCoreKit (9.1.0):
- FBSDKCoreKit/Basics (= 9.1.0)
- FBSDKCoreKit/Core (= 9.1.0)
- FBSDKCoreKit/Basics (9.1.0)
- FBSDKCoreKit/Core (9.1.0):
- FBSDKCoreKit/Basics
- Firebase/Analytics (3.6.0):
- FirebaseAnalytics (= 3.4.2)
- Firebase/Core (3.6.0):
- Firebase/Analytics
- Firebase/CoreOnly (7.9.0):
- FirebaseCore (= 7.9.0)
- Firebase/Crashlytics (7.9.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 7.9.0)
- Firebase/Messaging (3.6.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.2.0)
- FirebaseAnalytics (3.4.2):
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseCore (7.9.0):
- FirebaseCoreDiagnostics (~> 7.4)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- FirebaseCoreDiagnostics (7.9.0):
- GoogleDataTransport (~> 8.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/Logger (~> 7.0)
- nanopb (~> 2.30907.0)
- FirebaseCrashlytics (7.9.0):
- FirebaseCore (~> 7.0)
- FirebaseInstallations (~> 7.0)
- GoogleDataTransport (~> 8.0)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- FirebaseInstallations (7.9.0):
- FirebaseCore (~> 7.0)
- GoogleUtilities/Environment (~> 7.0)
- GoogleUtilities/UserDefaults (~> 7.0)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (1.0.9)
- FirebaseMessaging (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- Flurry-iOS-SDK (10.1.0):
- Flurry-iOS-SDK/FlurrySDK (= 10.1.0)
- Flurry-iOS-SDK/FlurrySDK (10.1.0)
- GoogleDataTransport (8.3.0):
- GoogleUtilities/Environment (~> 7.2)
- nanopb (~> 2.30907.0)
- PromisesObjC (~> 1.2)
- GoogleInterchangeUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleIPhoneUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.0)
- GoogleSymbolUtilities (1.1.2)
- GoogleUtilities (1.3.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities/Environment (7.3.1):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (7.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/UserDefaults (7.3.1):
- GoogleUtilities/Logger
Clean the project
Close the Xcode
Delete derived data
If you have
already installed the POD, kindly delete the “.xcworkspace” &
“Podfile.lock” files
Install pod again - Doesn't work
Just rename
pod 'Firebase/Analytics'
to
pod 'FirebaseAnalytics'
and run
pod install
This happened to me as well. I noticed that pod 'Firebase/Analytics' was installing an old version:
Installing FirebaseAnalytics (3.4.2)
Not sure why was that, but I fixed it by adding the version (the latest at the time this was written) in the pod:
pod 'Firebase/Analytics', '8.1.0'
Add to the Podfile: platform :ios, '10.0'
More details at https://github.com/firebase/firebase-ios-sdk/issues/7782
The same happened to me when upgrading from SDK v7 to v8. I figured out that replacing
pod 'Firebase/Admob'
with
pod 'Google-Mobile-Ads-SDK'
resolved the problem. The old Firebase 3.6.0 will then not anymore be loaded during pod update.
But be aware that the Mobile Ads API did change slightly from SDK v7 to v8. You have to follow these instructions to adapt your code:
Migrate Mobile Ads SDK v7 to v8
Removing pod 'Firebase/Core' from the Podfile resolved the issue for me.
In my case, the error started to happen after I switched to 'Firebase/AnalyticsWithoutAdIdSupport' from 'Firebase/Analytics'. I noticed the following happens during pod installation every time:
Downloading dependencies
Installing Firebase 3.6.0 (was 8.1.0)
Installing Firebase 8.1.0
So, somehow Firebase/Core causes the old Firebase to be installed as well. Therefore removing it solved the issue, because probably other Firebase dependencies depend on it anyway.
I got the same error after updating rnfirebase to 11.3.3.
I was able to solve the problem by removing 'Firebase/Analytics' dependency from the PodFile. i.e. by removing the following line from the Podfile:
pod 'Firebase/Analytics'
and then run pod install command.
Remove:
pod 'Firebase/Core'
from your podfile and run pod install. It is deprecated and no longer needed.
This seems to be some sort of issue with Xcode 12.4, cocoapods 1.10.1, and Firebase/Database 8.1.1
Today I just updated to Xcode 12.4 and cocoapods 1.10.1 and this problem came out of no where. I deleted derived data, did a pod deintegrate, pod clean, removed the Podfile, then reinstalled all of my original pods and the problem kept occurring. What I decided to do was just install 1 pod at a time. Eventually i installed all of my Firebase pods and when went to install my GeoFire pod I got the error:
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In snapshot (Podfile.lock):
Firebase/Database (= 8.1.1)
In Podfile:
Firebase/Database
GeoFire (from `https://github.com/firebase/geofire-objc.git`) was resolved to 4.2.0, which depends on
GeoFire/Database (= 4.2.0) was resolved to 4.2.0, which depends on
Firebase/Database (~> 7.0.0)
Specs satisfying the `Firebase/Database, Firebase/Database (= 8.1.1), Firebase/Database (~> 7.0.0)` dependency were found, but they required a higher minimum deployment target.
The error pointed out that the current Firebase/Database I was using was 8.1.1 and GeoFire was incompatible with it. I don't know what version I was using before today but I used the minimum version that it required pod 'Firebase/Database', '~> 7.0.0' and the problem went away. Here is my Podfile and the error is gone.
platform :ios, '10.0' // this was #PaulBeusterien suggestion but it didn't work with Firebase/Database 8.1.1
install! 'cocoapods', :deterministic_uuids => false
target 'MyApp' do
use_frameworks!
# Pods for MyApp
pod 'Firebase'
pod 'Firebase/Functions'
pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Messaging'
pod 'FirebaseAnalytics'
pod 'FirebaseCrashlytics'
pod 'Firebase/Installations'
pod 'Firebase/Database', '~> 7.0.0' // This was the fix for me
pod 'Google-Mobile-Ads-SDK'
pod 'PersonalizedAdConsent'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
pod 'GoogleSignIn'
pod 'GoogleAnalytics'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = ‘5.0’
end
end
end
end
I have faced the same problem. I fixed it by rename below pod names ...
pod 'Firebase/Analytics' -> pod 'FirebaseAnalytics'
pod 'Google/SignIn' -> pod 'GoogleSignIn'
For me the problem was to update to Firebase v8.x.x using the pod 'Firebase/Admob', then the GoogleUtilities missing file error appears. So I have replaced:
pod 'Firebase/AdMob'
with
pod 'Google-Mobile-Ads-SDK', '~> 7.x'
This allowed me to continue the build without errors and code changes, as the GoogleMobileAdSDK version 8 or 9 (January 2022) requires code migration, so this code migration is another post story.
I was installing Firebase/Performance, and got this error. My was Firebase was set in the Podfile fixed to 8.5.0. After setting it to a higher version 8.11.0, the project compiled again.
This is what works for me.
pod 'Firebase'
pod 'FirebaseCore'
pod 'FirebaseCrashlytics'
pod 'FirebaseAnalytics', '8.1.0'
pod 'FirebaseMessaging'
pod 'FirebaseInstallations'
That pod 'FirebaseAnalytics', '8.1.0' is the most important there.
Note: I am using Ventura and XCode 14.1
For me, I needed to follow Paul Beusterien & Tinchetsu answers:
Add at the top of the Podfile:
platform :ios, '10.0'
Specify max version for Firebase Analytics:
pod 'Firebase/Analytics', '8.1.0'
Just use these versions in pubsec.yaml
firebase_auth: ^0.18.4+1
firebase_core: "0.5.3"
cloud_firestore:
firebase_messaging:
after above dependency installation
run the following commands
rm -rf Podfile.lock
flutter clean
flutter pub get
cd ios
pod install
the above method solved my problem.
I have a simple Xcode project with some Pods (related to Google Firebase) already installed. Everything with these is working perfectly fine. However, any attempts to install any additional Pods is resulting in the Xcode project failing to compile. I'm providing two examples of this below. Please note that both pods below are failing with the same error
LBTAComponents
I am trying to install the LBTAComponents pod.
I add pod "LBTAComponents" to the Podfile and run Pod install. I then build the project, and the build fails with error /Users/admin/testApp/Pods/leveldb-library/port/port_posix.h:77:35: Use of undeclared identifier '__BYTE_ORDER'
I've tried the standard troubleshooting steps, such as cleaning the build data and deleting the Derived Data folder. The issue still persists
AFNetworking
I am having a similar issue with the AFNetwoking pod.
I add pod 'AFNetworking', '~> 3.0'" to the Podfile and run Pod install. I then build the project, and again the build fails with error /Users/admin/testApp/Pods/leveldb-library/port/port_posix.h:77:35: Use of undeclared identifier '__BYTE_ORDER'. This is the same error as the previous example.
Again, the standard troubleshooting steps I mentioned before did not resolve the issue.
I'll emphasize again that the installation of Google's Firebase pods is working perfectly fine. However, subsequent pod installations are producing the error I described above.
Any idea how I can go about correcting this? Cheers!
LBTAComponents
Okay, so attempting to install any additional Pods related to Firebase also results in the same build failure as above. So it seems that I cannot install any new Pods whatsoever.
For reference, here is my Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for App
pod 'Firebase'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
target 'AppTests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
end
target 'AppUITests' do
inherit! :search_paths
# Pods for testing
pod 'Firebase'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
end
end
and my Podfile.lock:
PODS:
- BoringSSL-GRPC (0.0.3):
- BoringSSL-GRPC/Implementation (= 0.0.3)
- BoringSSL-GRPC/Interface (= 0.0.3)
- BoringSSL-GRPC/Implementation (0.0.3):
- BoringSSL-GRPC/Interface (= 0.0.3)
- BoringSSL-GRPC/Interface (0.0.3)
- Firebase (6.9.0):
- Firebase/Core (= 6.9.0)
- Firebase/Analytics (6.9.0):
- Firebase/Core
- Firebase/Auth (6.9.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 6.2.3)
- Firebase/Core (6.9.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 6.1.2)
- Firebase/CoreOnly (6.9.0):
- FirebaseCore (= 6.3.0)
- Firebase/Database (6.9.0):
- Firebase/CoreOnly
- FirebaseDatabase (~> 6.1.0)
- Firebase/Firestore (6.9.0):
- Firebase/CoreOnly
- FirebaseFirestore (~> 1.5.1)
- Firebase/Storage (6.9.0):
- Firebase/CoreOnly
- FirebaseStorage (~> 3.4.1)
- FirebaseAnalytics (6.1.2):
- FirebaseCore (~> 6.3)
- FirebaseInstanceID (~> 4.2)
- GoogleAppMeasurement (= 6.1.2)
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (~> 0.3)
- FirebaseAuth (6.2.3):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.2)
- GoogleUtilities/AppDelegateSwizzler (~> 6.2)
- GoogleUtilities/Environment (~> 6.2)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseAuthInterop (1.0.0)
- FirebaseCore (6.3.0):
- FirebaseCoreDiagnostics (~> 1.0)
- FirebaseCoreDiagnosticsInterop (~> 1.0)
- GoogleUtilities/Environment (~> 6.2)
- GoogleUtilities/Logger (~> 6.2)
- FirebaseCoreDiagnostics (1.1.0):
- FirebaseCoreDiagnosticsInterop (~> 1.0)
- GoogleDataTransportCCTSupport (~> 1.0)
- GoogleUtilities/Environment (~> 6.2)
- GoogleUtilities/Logger (~> 6.2)
- FirebaseCoreDiagnosticsInterop (1.0.0)
- FirebaseDatabase (6.1.0):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- leveldb-library (~> 1.18)
- FirebaseFirestore (1.5.1):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.2)
- FirebaseFirestore/abseil-cpp (= 1.5.1)
- "gRPC-C++ (= 0.0.9)"
- leveldb-library (~> 1.22)
- nanopb (~> 0.3.901)
- Protobuf (~> 3.1)
- FirebaseFirestore/abseil-cpp (1.5.1):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.2)
- "gRPC-C++ (= 0.0.9)"
- leveldb-library (~> 1.22)
- nanopb (~> 0.3.901)
- Protobuf (~> 3.1)
- FirebaseInstanceID (4.2.5):
- FirebaseCore (~> 6.0)
- GoogleUtilities/Environment (~> 6.0)
- GoogleUtilities/UserDefaults (~> 6.0)
- FirebaseStorage (3.4.1):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- GTMSessionFetcher/Core (~> 1.1)
- GoogleAppMeasurement (6.1.2):
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (~> 0.3)
- GoogleDataTransport (2.0.0)
- GoogleDataTransportCCTSupport (1.1.0):
- GoogleDataTransport (~> 2.0)
- nanopb
- GoogleUtilities/AppDelegateSwizzler (6.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (6.3.1)
- GoogleUtilities/Logger (6.3.1):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (6.3.1):
- GoogleUtilities/Logger
- GoogleUtilities/Network (6.3.1):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (6.3.1)"
- GoogleUtilities/Reachability (6.3.1):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (6.3.1):
- GoogleUtilities/Logger
- "gRPC-C++ (0.0.9)":
- "gRPC-C++/Implementation (= 0.0.9)"
- "gRPC-C++/Interface (= 0.0.9)"
- "gRPC-C++/Implementation (0.0.9)":
- "gRPC-C++/Interface (= 0.0.9)"
- gRPC-Core (= 1.21.0)
- nanopb (~> 0.3)
- "gRPC-C++/Interface (0.0.9)"
- gRPC-Core (1.21.0):
- gRPC-Core/Implementation (= 1.21.0)
- gRPC-Core/Interface (= 1.21.0)
- gRPC-Core/Implementation (1.21.0):
- BoringSSL-GRPC (= 0.0.3)
- gRPC-Core/Interface (= 1.21.0)
- nanopb (~> 0.3)
- gRPC-Core/Interface (1.21.0)
- GTMSessionFetcher/Core (1.2.2)
- leveldb-library (1.22)
- nanopb (0.3.901):
- nanopb/decode (= 0.3.901)
- nanopb/encode (= 0.3.901)
- nanopb/decode (0.3.901)
- nanopb/encode (0.3.901)
- Protobuf (3.10.0)
DEPENDENCIES:
- Firebase
- Firebase/Analytics
- Firebase/Auth
- Firebase/Database
- Firebase/Firestore
- Firebase/Storage
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- BoringSSL-GRPC
- Firebase
- FirebaseAnalytics
- FirebaseAuth
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreDiagnosticsInterop
- FirebaseDatabase
- FirebaseFirestore
- FirebaseInstanceID
- FirebaseStorage
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleUtilities
- "gRPC-C++"
- gRPC-Core
- GTMSessionFetcher
- leveldb-library
- nanopb
- Protobuf
SPEC CHECKSUMS:
BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318
Firebase: 2d750c54cda57d5a6ae31212cfe5cc813c6be7e4
FirebaseAnalytics: 5d9ccbf46ed25d3ec9304d263f85bddf1e93e2d2
FirebaseAuth: e7f86c2dfc57281cd01f7da5e4b40e01e4510a4a
FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
FirebaseCore: 8b2765c445d40db7137989b7146a3aa3f91b5529
FirebaseCoreDiagnostics: be4f7a09d02ab305f18de59a470412caddb64c2a
FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb
FirebaseDatabase: 518cd94286de2ee999e19383a2a6ae04c81ce993
FirebaseFirestore: 5ee8bdb959541f0d55352f2d681efb03b9742a43
FirebaseInstanceID: 550df9be1f99f751d8fcde3ac342a1e21a0e6c42
FirebaseStorage: b7c6d00997bc21d4465453bdcc5cc65513110fed
GoogleAppMeasurement: 0ae90be1cc4dad40f4a27fc767ef59fa032ec87b
GoogleDataTransport: c8617c00e4f3eb9418e42ac0e8ac5241a9d555dd
GoogleDataTransportCCTSupport: 9f352523e8785a71f6754f51eeff09f49ec19268
GoogleUtilities: f895fde57977df4e0233edda0dbeac490e3703b6
"gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83
gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947
GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7
nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
Protobuf: a4dc852ad69c027ca2166ed287b856697814375b
PODFILE CHECKSUM: a068de7f759e79161ece809834082ef4236e1f53
COCOAPODS: 1.7.5
the build fails with error /Users/admin/testApp/Pods/leveldb-library/port/port_posix.h:77:35: Use of undeclared identifier '__BYTE_ORDER'. This is the same error as the previous example.
If you read the error, you'll see that the offending pod is leveldb-library. A quick pod search leveldb-library points us to the leveldb-library Github repo, where we should be able to find the offending file. Looking at your Podfile.lock, you're inheriting the dependency on leveldb-library from Firebase. There's something a little weird about that leveldb-library pod -- most of the tags in the repo have a 'v', like v1.20, but a few are missing the 'v', such as 1.22. If you look at the port directory in the 1.22 tag, you'll see that none of the file names mention posix, but if you look in the v1.20 tag you'll find the port_posix.h file that the error complains about.
So, it looks like maybe you've some outdated files in your copy of the leveldb-library pod, and you should probably just clear that out and install it again. IIRC you can do:
pod clean leveldb-library
followed by:
pod install
and you should get a fresh copy. If that doesn't solve the problem, continue to dig into exactly which copy of that pod you've got and make sure it matches what's in the pod's repo. You could also do a pod update since you're at least one version behind on Firebase.
I had same error on leveldb-library (same version and same checksum as OP) after I updated my macOS to catalina, upgraded my Cocoapod and upgrade my XCode from 10.2 to 11.1.
I solved my problem after I changed the build system from New Build System to Legacy Build System via File Menu -> Workspace Settings.. -> Build System. (refer to https://stackoverflow.com/a/53050109/3230406)
resolved by cleaning build folder product -> clean build folder
I'm using cocoapod version /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.3/lib/cocoapods.rb, Swift 5, and Xcode 10.2.1. I cleaned the derived data.
I just updated to Swift 5 (just got a cpu that could support MoJave) and when I try to build my project I keep getting the error
FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
Before I updated this never happened before in my old project.
It seems it's specifically coming from Firebase/Core
I did a cmmd+4 for a search and other files use it but they aren't complaining
I tried:
$ pod deintegrate
$ pod clean
$ rm Podfile
$ pod init
$ pod install
$ pod repo remove master // also sudo rm -fr ~/.cocoapods/repos/master
$ pod repo update
$ pod setup
$ pod install
$ pod update
But the error won't go away. How can I fix this?
Here is my pod file:
target 'MyApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Stripe'
pod 'DLRadioButton', '~> 1.4'
pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
pod 'AFNetworking'
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'SDWebImage'
pod 'Fabric'
pod 'Crashlytics'
pod 'KeychainSwift'
pod 'IQKeyboardManagerSwift'
pod 'HMSegmentedControl'
pod 'NKVPhonePicker'
pod 'FlagPhoneNumber'
pod 'MetalPetal'
pod "SwiftPhoneNumberFormatter"
pod 'CountryPickerView'
pod 'mailcore2-ios'
pod 'Cosmos'
pod 'GoogleInterchangeUtilities'
pod 'GoogleNetworkingUtilities'
pod 'GoogleParsingUtilities'
pod 'GoogleSymbolUtilities'
pod 'GoogleUtilities'
#pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'FirebaseInstanceID'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Crash'
pod 'Firebase/Messaging'
pod 'GooglePlacesAPI'
pod ‘GoogleMaps’
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'GoogleSignIn'
pod 'GoogleAnalytics'
pod 'ReachabilitySwift'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = ‘5.0’
end
end
end
end
Podfile.Lock
PODS:
- AFNetworking (3.2.1):
- AFNetworking/NSURLSession (= 3.2.1)
- AFNetworking/Reachability (= 3.2.1)
- AFNetworking/Security (= 3.2.1)
- AFNetworking/Serialization (= 3.2.1)
- AFNetworking/UIKit (= 3.2.1)
- AFNetworking/NSURLSession (3.2.1):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (3.2.1)
- AFNetworking/Security (3.2.1)
- AFNetworking/Serialization (3.2.1)
- AFNetworking/UIKit (3.2.1):
- AFNetworking/NSURLSession
- Alamofire (4.8.2)
- Cosmos (19.0.3)
- CountryPickerView (3.0.1)
- Crashlytics (3.13.2):
- Fabric (~> 1.10.2)
- DLRadioButton (1.4.12)
- Fabric (1.10.2)
- Firebase/Analytics (3.6.0):
- FirebaseAnalytics (= 3.4.2)
- Firebase/Auth (6.3.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 6.1.2)
- Firebase/Core (3.6.0):
- Firebase/Analytics
- Firebase/CoreOnly (6.3.0):
- FirebaseCore (= 6.0.3)
- Firebase/Crash (3.6.0):
- Firebase/Analytics
- FirebaseCrash (= 1.0.7)
- Firebase/Database (6.3.0):
- Firebase/CoreOnly
- FirebaseDatabase (~> 6.0.0)
- Firebase/DynamicLinks (6.3.0):
- Firebase/CoreOnly
- FirebaseDynamicLinks (~> 4.0.0)
- Firebase/Messaging (3.6.0):
- Firebase/Analytics
- FirebaseMessaging (= 1.2.0)
- Firebase/Storage (6.3.0):
- Firebase/CoreOnly
- FirebaseStorage (~> 3.2.1)
- FirebaseAnalytics (3.4.2):
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseAnalyticsInterop (1.2.0)
- FirebaseAuth (6.1.2):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- GoogleUtilities/AppDelegateSwizzler (~> 6.2)
- GoogleUtilities/Environment (~> 6.2)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseAuthInterop (1.0.0)
- FirebaseCore (6.0.3):
- GoogleUtilities/Environment (~> 6.0)
- GoogleUtilities/Logger (~> 6.0)
- FirebaseCrash (1.0.7):
- FirebaseAnalytics (~> 3.2)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseAnalyticsInterop (1.2.0)
- FirebaseAuth (6.1.2):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- GoogleUtilities/AppDelegateSwizzler (~> 6.2)
- GoogleUtilities/Environment (~> 6.2)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseAuthInterop (1.0.0)
- FirebaseCore (6.0.3):
- GoogleUtilities/Environment (~> 6.0)
- GoogleUtilities/Logger (~> 6.0)
- FirebaseCrash (1.0.7):
- FirebaseAnalytics (~> 3.2)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities (~> 1.2)
- FirebaseDatabase (6.0.0):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- leveldb-library (~> 1.18)
- FirebaseDynamicLinks (4.0.0):
- FirebaseAnalyticsInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- FirebaseInstanceID (1.0.9)
- FirebaseMessaging (1.2.0):
- FirebaseAnalytics (~> 3.3)
- FirebaseInstanceID (~> 1.0)
- GoogleInterchangeUtilities (~> 1.2)
- GoogleIPhoneUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- FirebaseStorage (3.2.1):
- FirebaseAuthInterop (~> 1.0)
- FirebaseCore (~> 6.0)
- GTMSessionFetcher/Core (~> 1.1)
- FlagPhoneNumber (0.7.6):
- FlagPhoneNumber/libPhoneNumberiOS (= 0.7.6)
- FlagPhoneNumber/libPhoneNumberiOS (0.7.6)
- GeoFire (3.0.0):
- Firebase/Database (~> 6.0)
- GoogleAnalytics (3.17.0)
- GoogleInterchangeUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleIPhoneUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleUtilities (~> 1.0)
- GoogleMaps (3.1.0):
- GoogleMaps/Maps (= 3.1.0)
- GoogleMaps/Base (3.1.0)
- GoogleMaps/Maps (3.1.0):
- GoogleMaps/Base
- GoogleNetworkingUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleParsingUtilities (1.1.2):
- GoogleNetworkingUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GooglePlacePicker (3.1.0):
- GoogleMaps (= 3.1.0)
- GooglePlaces (= 3.1.0)
- GooglePlaces (3.1.0):
- GoogleMaps/Base (= 3.1.0)
- GooglePlacesAPI (1.1.4):
- Alamofire (~> 4)
- ObjectMapper (~> 3)
- GoogleSignIn (4.4.0):
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- "GoogleToolboxForMac/NSString+URLArguments (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- GoogleSymbolUtilities (1.1.2)
- GoogleToolboxForMac/DebugUtils (2.2.1):
- GoogleToolboxForMac/Defines (= 2.2.1)
- GoogleToolboxForMac/Defines (2.2.1)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.1)":
- GoogleToolboxForMac/DebugUtils (= 2.2.1)
- GoogleToolboxForMac/Defines (= 2.2.1)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.2.1)"
- "GoogleToolboxForMac/NSString+URLArguments (2.2.1)"
- GoogleUtilities (1.3.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleUtilities/AppDelegateSwizzler (6.2.1):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (6.2.1)
- GoogleUtilities/Logger (6.2.1):
- GoogleUtilities/Environment
- GoogleUtilities/Network (6.2.1):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (6.2.1)"
- GoogleUtilities/Reachability (6.2.1):
- GoogleUtilities/Logger
- GTMSessionFetcher/Core (1.2.2)
- HMSegmentedControl (1.5.5)
- IQKeyboardManagerSwift (6.4.0)
- KeychainSwift (16.0.1)
- leveldb-library (1.20)
- mailcore2-ios (0.6.4)
- MetalPetal (1.4.4):
- MetalPetal/Core (= 1.4.4)
- MetalPetal/Core (1.4.4)
- NKVPhonePicker (2.1.0)
- ObjectMapper (3.5.1)
- ReachabilitySwift (4.3.1)
- SDWebImage (5.0.6):
- SDWebImage/Core (= 5.0.6)
- SDWebImage/Core (5.0.6)
- Stripe (15.0.1)
- SwiftPhoneNumberFormatter (1.5)
- SwiftyJSON (5.0.0)
DEPENDENCIES:
- AFNetworking
- Alamofire
- Cosmos
- CountryPickerView
- Crashlytics
- DLRadioButton (~> 1.4)
- Fabric
- Firebase/Auth
- Firebase/Core
- Firebase/Crash
- Firebase/Database
- Firebase/DynamicLinks
- Firebase/Messaging
- Firebase/Storage
- FirebaseInstanceID
- FlagPhoneNumber
- GeoFire (from `https://github.com/firebase/geofire-objc.git`)
- GoogleAnalytics
- GoogleInterchangeUtilities
- GoogleMaps
- GoogleNetworkingUtilities
- GoogleParsingUtilities
- GooglePlacePicker
- GooglePlaces
- GooglePlacesAPI
- GoogleSignIn
- GoogleSymbolUtilities
- GoogleUtilities
- HMSegmentedControl
- IQKeyboardManagerSwift
- KeychainSwift
- mailcore2-ios
- MetalPetal
- NKVPhonePicker
- ReachabilitySwift
- SDWebImage
- Stripe
- SwiftPhoneNumberFormatter
- SwiftyJSON
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AFNetworking
- Alamofire
- Cosmos
- CountryPickerView
- Crashlytics
- DLRadioButton
- Fabric
- Firebase
- FirebaseAnalytics
- FirebaseAnalyticsInterop
- FirebaseAuth
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCrash
- FirebaseDatabase
- FirebaseDynamicLinks
- FirebaseInstanceID
- FirebaseMessaging
- FirebaseStorage
- FlagPhoneNumber
- GoogleAnalytics
- GoogleInterchangeUtilities
- GoogleIPhoneUtilities
- GoogleMaps
- GoogleNetworkingUtilities
- GoogleParsingUtilities
- GooglePlacePicker
- GooglePlaces
- GooglePlacesAPI
- GoogleSignIn
- GoogleSymbolUtilities
- GoogleToolboxForMac
- GoogleUtilities
- GTMSessionFetcher
- HMSegmentedControl
- IQKeyboardManagerSwift
- KeychainSwift
- leveldb-library
- mailcore2-ios
- MetalPetal
- NKVPhonePicker
- ObjectMapper
- ReachabilitySwift
- SDWebImage
- Stripe
- SwiftPhoneNumberFormatter
- SwiftyJSON
EXTERNAL SOURCES:
GeoFire:
:git: https://github.com/firebase/geofire-objc.git
Remove the following from the Podfile:
pod 'GoogleInterchangeUtilities'
pod 'GoogleNetworkingUtilities'
pod 'GoogleParsingUtilities'
pod 'GoogleSymbolUtilities'
pod 'GoogleUtilities'
Those are internal Google support pods that should not be directly added to Podfiles. Some of them are no longer active and because they're being asked to be loaded, they're forcing in ancient versions of other pods, like Firebase 3.x. Firebase is currently on version 6. It's also loading an ancient version of GoogleUtilities instead of the current 6.x version which is why there are missing GoogleUtilities symbol link errors.
I ran $ sudo gem which cocoapods and it said the version I was using was cocoapods-1.7.3. Luckily my old computer still had the old version of cocoapods that was working fine which was cocoapods-1.5.3.
I did 5 things
1- I uninstalled the current version of cocoapods and installed the previous version:
$ sudo gem uninstall cocoapod // uninstall current version
$ sudo gem install cocoapods -v 0.25.0 // install the older version that was working
$ sudo gem which cocoapods // check the updated version
2- I ran the following commends to clean everything out although cleaning out the derived data was probably the only one I needed
$ rm -rf ~/Library/Caches/CocoaPods
$ rm -rf Pods
$ rm -rf ~/Library/Developer/Xcode/DerivedData
$ pod deintegrate
$ pod clean
$ rm Podfile
$ pod cache clean --all
3- After I ran $ pod init to create the podfile, I opened it and made sure the minimum version I'm using in my Xcode project matches what's in the podfile and I also added install! 'cocoapods', :deterministic_uuids => false to the root of the pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0' // my Xcode project has a minimum target of iOS 12
install! 'cocoapods', :deterministic_uuids => false // this line should be written before the target line with the project name below
target 'MyProjectName' do
...
After I did the above and I ran pod install I kept getting an error that said:
[!] CocoaPods could not find compatible versions for pod
"Firebase/Crash": In Podfile:
Firebase/Crash Specs satisfying the Firebase/Crash dependency were found, but they required a higher minimum deployment target.
Inside my pod file I commented out Firebase/Crash
$ #Firebase/Crash
5- Afterwards I ran pod install I also ran pod update and the error from my question went away:
$ pod install
$ pod update
The FirebaseCore Lexical or preprocessor 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found was finally resolved although I some other errors like 'NBPhoneNumberDesc.h' file not found that was already there but these are the steps I used to get rid of this GoogleUtilities one.
This is because of mismatched version of GoogleUtilities, please update GoogleUtilities using pod update GoogleUtilities
Install this only pod 'Firebase/Core'
I using react-native-fcm for remote push notification but it gives this error:
ld: library not found for -lFirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Pod:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'SefrTaSad' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for SefrTaSad
pod 'Firebase'
pod 'Firebase/Messaging'
end
Podfile.lock:
PODS:
- Firebase (5.5.0):
- Firebase/Core (= 5.5.0)
- Firebase/Core (5.5.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.1.0)
- Firebase/CoreOnly (5.5.0):
- FirebaseCore (= 5.1.0)
- Firebase/Messaging (5.5.0):
- Firebase/CoreOnly
- FirebaseMessaging (= 3.1.0)
- FirebaseAnalytics (5.1.0):
- FirebaseCore (~> 5.1)
- FirebaseInstanceID (~> 3.2)
- GoogleAppMeasurement (~> 5.1)
- GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
- GoogleUtilities/MethodSwizzler (~> 5.2.0)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- FirebaseCore (5.1.0):
- GoogleUtilities/Logger (~> 5.2)
- FirebaseInstanceID (3.2.0):
- FirebaseCore (~> 5.1)
- GoogleUtilities/Environment (~> 5.2)
- FirebaseMessaging (3.1.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- GoogleUtilities/Reachability (~> 5.2)
- Protobuf (~> 3.1)
- GoogleAppMeasurement (5.1.0):
- GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
- GoogleUtilities/MethodSwizzler (~> 5.2.0)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- GoogleUtilities/AppDelegateSwizzler (5.2.2):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (5.2.2)
- GoogleUtilities/Logger (5.2.2):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (5.2.2):
- GoogleUtilities/Logger
- GoogleUtilities/Network (5.2.2):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (5.2.2)"
- GoogleUtilities/Reachability (5.2.2):
- GoogleUtilities/Logger
- nanopb (0.3.8):
- nanopb/decode (= 0.3.8)
- nanopb/encode (= 0.3.8)
- nanopb/decode (0.3.8)
- nanopb/encode (0.3.8)
- Protobuf (3.6.1)
DEPENDENCIES:
- Firebase
- Firebase/Messaging
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Firebase
- FirebaseAnalytics
- FirebaseCore
- FirebaseInstanceID
- FirebaseMessaging
- GoogleAppMeasurement
- GoogleUtilities
- nanopb
- Protobuf
SPEC CHECKSUMS:
Firebase: 8c957f9cb3852b519180fb378801b7eeeba4d288
FirebaseAnalytics: d4a260c114aec0d765ab5b9c404ac63de1d29381
FirebaseCore: ee4b35cf8c8e781da296cc7c15125e4608bb954d
FirebaseInstanceID: 8cd2c6cfe7b9ab65ce7e248f6da7f26f6775b9be
FirebaseMessaging: f67b3719f520ee200da0e20ce577fe2bce0c01d0
GoogleAppMeasurement: e785bdb86d3d280abc778156cec323a975f11d1d
GoogleUtilities: 06b66f9567769a7958db20a92f0128b2843e49d5
nanopb: 5601e6bca2dbf1ed831b519092ec110f66982ca3
Protobuf: 1eb9700044745f00181c136ef21b8ff3ad5a0fd5
PODFILE CHECKSUM: 5128fcc348aba846d880d9bb9978b4bf02c0718d
COCOAPODS: 1.5.3
project build whit react-native
and I make appId, key and profile
the app successfully conected to firebase console but when I want to archive it whit xcode it gives this error:
how can I solve this error ?
I resolved opening "PROJECT-NAME".xcworkspace
Check your Build Active Architecture Only setting in the Build Settings and make sure it's Yes for the Debug.
I was working on an old project and it was No for both Debug and Release for some reason and Xcode was trying to look for an arm64 version of Firebase for a simulator build.
Add libRNFirebase.a to your Linked Framework and Libraries
use in Podfile
pod 'Firebase/Core'
after this go to terminal pod update
In My case,
when command pod install,
pod install yellow warnings are showed
Use the $(inherited) flag, or
Remove the build settings from the targets.
So when xcode, project
Project => Build Settings => Library Search Paths
add $(inherited) by non-recursive.
then problem solved.
Make sure that all of your ios target versions are the same as in pod file.
My case is different but maybe can help someone.
In my case, I had my application and I had a Notification Service Extension, which was the project that was getting the error.
I tried everything and nothing worked, I spend almost 4 hours trying to find a solution but with no success at all. So for no reason at all, I decided to check the iOS version defined for both, my project and the Notification Service Extention, and it was different, while my project was in version 11.0, the Extension was using 10.0.
So I put the Extension in 11.0 to match my project and voila, it worked.
I integrated Firebase and GTM over cocoapods:
pod 'Firebase/Core'
pod 'GoogleTagManager', '~> 5.0'
Podfile.lock for the versions used :
Firebase/Core (3.12.0):
FirebaseAnalytics (= 3.6.0)
FirebaseCore (= 3.4.7)
FirebaseAnalytics (3.6.0):
FirebaseCore (~> 3.4)
FirebaseInstanceID (~> 1.0)
GoogleInterchangeUtilities (~> 1.2)
GoogleSymbolUtilities (~> 1.1)
GoogleToolboxForMac/NSData+zlib (~> 2.1)
FirebaseCore (3.4.7):
GoogleInterchangeUtilities (~> 1.2)
GoogleSymbolUtilities (~> 1.1)
GoogleToolboxForMac/NSData+zlib (~> 2.1)
FirebaseInstanceID (1.0.8)
GoogleAnalytics (3.17.0)
GoogleInterchangeUtilities (1.2.2):
GoogleSymbolUtilities (~> 1.1)
GoogleSymbolUtilities (1.1.2)
GoogleTagManager (5.0.8):
FirebaseAnalytics (~> 3.0)
GoogleAnalytics (~> 3.0)
GoogleUtilities (~> 1.3.0)
GoogleToolboxForMac/Defines (2.1.1)
GoogleToolboxForMac/NSData+zlib (2.1.1):
GoogleToolboxForMac/Defines (= 2.1.1)
GoogleUtilities (1.3.2):
GoogleSymbolUtilities (~> 1.1)
and followed the steps in documentation for the integration but i am having these warnings :
<FIRAnalytics/ERROR> Event name is reserved. Ignoring event: user_engagement
<FIRAnalytics/ERROR> Event name is reserved. Ignoring event: first_open
I know these are reserved events so i am not sending these. Can there an integration problem between GTM and firebase Analytics?
EDIT
I removed the ".json" extension from the config file. Logs said :
GoogleTagManager warning: No default container found. Container needs to be added to a container folder and added to the target.
Configuration was not found in database. The configuration will be fetched from the network when necessary
Firebase Analytics is ready to receive events
Firebase Analytics enabled
Fetching configuration from the server
Downloading data. Host: https://app-measurement.com/config/app/1:...
Successful fetched configuration from the server. Got network response. Code, size: 200, 106
Successfully parsed a configuration. Version: 1484056.........
Measurement data sent to network
Successful upload. Got network response. Code, size: 204, 0
any ideas ???
but errors are gone ???
Any ideas
In my case the problem was because of including files in a wrong way. Just be sure to include container folder properly. A tip : folder icon color shall be blue in project navigator.
To a folder in Xcode 11>, simply create the folder and drag it into your XCode and check Create folder reference in the import wizard popup. You will have the folder with a blue colour in the project navigator.