iOS Cannot update FBSDKCoreKit to latest version - ios

I try to update FBSDKCoreKit to the latest version (11.2.0) but it does not work because of specified version in Podfile. The current version is 5.15.1.
Xcode version _ 12.4
How can I update to 11.2.0 version?
Thanks
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'Name' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Name
pod 'KeychainSwift', '~> 10.0'
pod 'Kingfisher', '~> 4.0'
pod 'RealmSwift', '~> 2.10.1'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FacebookLogin'
pod 'DatePickerDialog', '~> 2.0'
pod 'PickerView', '~> 0.3.4'
pod 'PlainPing', '~> 0.5'
pod 'GoogleMaps', '~> 2.7.0'
pod 'SearchTextField', '~> 1.2.1'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'ReachabilitySwift', '~> 3'
pod 'SDWebImage', '~> 4.4.2'
pod 'SDWebImage/WebP’
target 'NameTests' do
inherit! :search_paths
# Pods for testing
end
target 'NameUITests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'Kingfisher' || target.name == 'SearchTextField'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end
When I do "pod update --repo-update" or "pod update" it returns this output.
CocoaPods 1.11.2 is available.
To update use: `sudo gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 17 dependencies from the Podfile and 28 total pods installed.
Podfile.lock
PODS:
- DatePickerDialog (2.0)
- FacebookCore (0.9.0):
- FBSDKCoreKit (~> 5.0)
- FacebookLogin (0.9.0):
- FacebookCore (~> 0.9.0)
- FBSDKCoreKit (~> 5.0)
- FBSDKLoginKit (~> 5.0)
- FBSDKCoreKit (5.15.1):
- FBSDKCoreKit/Basics (= 5.15.1)
- FBSDKCoreKit/Core (= 5.15.1)
- FBSDKCoreKit/Basics (5.15.1)
- FBSDKCoreKit/Core (5.15.1):
- FBSDKCoreKit/Basics
- FBSDKLoginKit (5.15.1):
- FBSDKLoginKit/Login (= 5.15.1)
- FBSDKLoginKit/Login (5.15.1):
- FBSDKCoreKit (~> 5.0)
- Firebase/Analytics (8.7.0):
- Firebase/Core
- Firebase/Core (8.7.0):
- Firebase/CoreOnly
- FirebaseAnalytics (~> 8.7.0)
- Firebase/CoreOnly (8.7.0):
- FirebaseCore (= 8.7.0)
- Firebase/Crashlytics (8.7.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 8.7.0)
- Firebase/Messaging (8.7.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 8.7.0)
- FirebaseAnalytics (8.7.0):
- FirebaseAnalytics/AdIdSupport (= 8.7.0)
- FirebaseCore (~> 8.0)
- FirebaseInstallations (~> 8.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
- GoogleUtilities/MethodSwizzler (~> 7.4)
- GoogleUtilities/Network (~> 7.4)
- "GoogleUtilities/NSData+zlib (~> 7.4)"
- nanopb (~> 2.30908.0)
- FirebaseAnalytics/AdIdSupport (8.7.0):
- FirebaseCore (~> 8.0)
- FirebaseInstallations (~> 8.0)
- GoogleAppMeasurement (= 8.7.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
- GoogleUtilities/MethodSwizzler (~> 7.4)
- GoogleUtilities/Network (~> 7.4)
- "GoogleUtilities/NSData+zlib (~> 7.4)"
- nanopb (~> 2.30908.0)
- FirebaseCore (8.7.0):
- FirebaseCoreDiagnostics (~> 8.0)
- GoogleUtilities/Environment (~> 7.4)
- GoogleUtilities/Logger (~> 7.4)
- FirebaseCoreDiagnostics (8.7.0):
- GoogleDataTransport (~> 9.0)
- GoogleUtilities/Environment (~> 7.4)
- GoogleUtilities/Logger (~> 7.4)
- nanopb (~> 2.30908.0)
- FirebaseCrashlytics (8.7.0):
- FirebaseCore (~> 8.0)
- FirebaseInstallations (~> 8.0)
- GoogleDataTransport (~> 9.0)
- GoogleUtilities/Environment (~> 7.4)
- nanopb (~> 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- FirebaseInstallations (8.7.0):
- FirebaseCore (~> 8.0)
- GoogleUtilities/Environment (~> 7.4)
- GoogleUtilities/UserDefaults (~> 7.4)
- PromisesObjC (< 3.0, >= 1.2)
- FirebaseMessaging (8.7.0):
- FirebaseCore (~> 8.0)
- FirebaseInstallations (~> 8.0)
- GoogleDataTransport (~> 9.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
- GoogleUtilities/Environment (~> 7.4)
- GoogleUtilities/Reachability (~> 7.4)
- GoogleUtilities/UserDefaults (~> 7.4)
- nanopb (~> 2.30908.0)
- GoogleAppMeasurement (8.7.0):
- GoogleAppMeasurement/AdIdSupport (= 8.7.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
- GoogleUtilities/MethodSwizzler (~> 7.4)
- GoogleUtilities/Network (~> 7.4)
- "GoogleUtilities/NSData+zlib (~> 7.4)"
- nanopb (~> 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (8.7.0):
- GoogleUtilities/AppDelegateSwizzler (~> 7.4)
- GoogleUtilities/MethodSwizzler (~> 7.4)
- GoogleUtilities/Network (~> 7.4)
- "GoogleUtilities/NSData+zlib (~> 7.4)"
- nanopb (~> 2.30908.0)
- GoogleDataTransport (9.1.0):
- GoogleUtilities/Environment (~> 7.2)
- nanopb (~> 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMaps (2.7.0):
- GoogleMaps/Maps (= 2.7.0)
- GoogleMaps/Base (2.7.0)
- GoogleMaps/Maps (2.7.0):
- GoogleMaps/Base
- GoogleUtilities/AppDelegateSwizzler (7.5.2):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.5.2):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.5.2):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.5.2):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.5.2):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.5.2)"
- GoogleUtilities/Reachability (7.5.2):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.5.2):
- GoogleUtilities/Logger
- KeychainSwift (10.0.0)
- Kingfisher (4.10.1)
- libwebp (1.2.0):
- libwebp/demux (= 1.2.0)
- libwebp/mux (= 1.2.0)
- libwebp/webp (= 1.2.0)
- libwebp/demux (1.2.0):
- libwebp/webp
- libwebp/mux (1.2.0):
- libwebp/demux
- libwebp/webp (1.2.0)
- nanopb (2.30908.0):
- nanopb/decode (= 2.30908.0)
- nanopb/encode (= 2.30908.0)
- nanopb/decode (2.30908.0)
- nanopb/encode (2.30908.0)
- PickerView (0.3.4)
- PlainPing (0.5.2)
- PromisesObjC (2.0.0)
- ReachabilitySwift (3)
- Realm (2.10.2):
- Realm/Headers (= 2.10.2)
- Realm/Headers (2.10.2)
- RealmSwift (2.10.2):
- Realm (= 2.10.2)
- SDWebImage (4.4.8):
- SDWebImage/Core (= 4.4.8)
- SDWebImage/Core (4.4.8)
- SDWebImage/WebP (4.4.8):
- libwebp (< 2.0, >= 0.5)
- SDWebImage/Core
- SearchTextField (1.2.4)
DEPENDENCIES:
- DatePickerDialog (~> 2.0)
- FacebookLogin
- FBSDKCoreKit
- FBSDKLoginKit
- Firebase/Analytics
- Firebase/Crashlytics
- Firebase/Messaging
- GoogleMaps (~> 2.7.0)
- KeychainSwift (~> 10.0)
- Kingfisher (~> 4.0)
- PickerView (~> 0.3.4)
- PlainPing (~> 0.5)
- ReachabilitySwift (~> 3)
- RealmSwift (~> 2.10.1)
- SDWebImage (~> 4.4.2)
- SDWebImage/WebP
- SearchTextField (~> 1.2.1)
SPEC REPOS:
trunk:
- DatePickerDialog
- FacebookCore
- FacebookLogin
- FBSDKCoreKit
- FBSDKLoginKit
- Firebase
- FirebaseAnalytics
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCrashlytics
- FirebaseInstallations
- FirebaseMessaging
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleMaps
- GoogleUtilities
- KeychainSwift
- Kingfisher
- libwebp
- nanopb
- PickerView
- PlainPing
- PromisesObjC
- ReachabilitySwift
- Realm
- RealmSwift
- SDWebImage
- SearchTextField
SPEC CHECKSUMS:
DatePickerDialog: 5e1c24d9fe6506cd45dbc573eed7b0a251b1c09d
FacebookCore: ba86524b66cfa86d0f8e65d08faa8504a9f732dd
FacebookLogin: 6cee9fd6e1fe976fe8f7eec199e27b28b14f5d63
FBSDKCoreKit: 1d5acf7c9d7a2f92bb1a242dc60cae5b7adb91df
FBSDKLoginKit: f1ea8026a58b52d30c9f2e6a58ca7d813619fb83
Firebase: bc9325d5ee2041524bac78a5213d0e530c651309
FirebaseAnalytics: 52768800c2add1d84b751420cb4caaf8195f2c41
FirebaseCore: f4804c1d3f4bbbefc88904d15653038f2c99ddf7
FirebaseCoreDiagnostics: b63732f581a1c6a453ec7241f9ab60b3a5bd3450
FirebaseCrashlytics: 6fac03d1eef054833b71c929c93ab95c12989728
FirebaseInstallations: ede6fb72bb6337914e5888b399271259d0c4910c
FirebaseMessaging: 93227dd71d7888e200baef65043f81acb2b6596e
GoogleAppMeasurement: 2be61ce546ad074dbe4dd545f222ac6033bb1d9e
GoogleDataTransport: 85fd18ff3019bb85d3f2c551d04c481dedf71fc9
GoogleMaps: f79af95cb24d869457b1f961c93d3ce8b2f3b848
GoogleUtilities: 8de2a97a17e15b6b98e38e8770e2d129a57c0040
KeychainSwift: f9f7910449a0c0fd2cabc889121530dd2c477c33
Kingfisher: c148cd7b47ebde9989f6bc7c27dcaa79d81279a0
libwebp: e90b9c01d99205d03b6bb8f2c8c415e5a4ef66f0
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
PickerView: 7edcbbd008682d574eb42916d74a18ebd8dba109
PlainPing: 41fb93099deb2f5ddbc534a934eb3bf07522d437
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
ReachabilitySwift: f5b9bb30a0777fac8f09ce8b067e32faeb29bb64
Realm: 0ef72b837fb67e9f4b098bac771ddd72c7fdbb69
RealmSwift: 07a9ae0505091eda6b2ee7c190c3786d6e90a7b0
SDWebImage: 783af2c3fa36291a250030c4752ee370a9a51d13
SearchTextField: 40dc3cc57def5a211f263cac263622c163bbc25a
PODFILE CHECKSUM: a8fdbf33428136b7ed90588af807a6827e1ff40e
COCOAPODS: 1.10.1

Extract of your podfile.lock:
- FacebookLogin (0.9.0):
- FacebookCore (~> 0.9.0)
- FBSDKCoreKit (~> 5.0)
- FBSDKLoginKit (~> 5.0)
Here, FacebookLogin in version 0.9.0 needs a FBSDKCoreKit of version 5.x.
So FacebookLogin is the one limiting the FBSDKCoreKit version.
So is there a newer version of FacebookLogin that allow a upper version of FBSDKCoreKit? It doesn't seem so according to the release page.
You could specify the wanted version of FBSDKCoreKit with pod 'FBSDKCoreKit', '~> 11.2.0', but then, you should have a conflict, because FacebookLogin supports only 5.x.
So, you can't.
Either wait, ask/propose updates on the repo (if they accept MR), etc.

When you run pod install it will create a Podfile.lock to specify the correct version to use, you can use that lock file to share across your team to make sure everyone install same version of library on their machine. Pod lock file contains like:
- RxCocoa (5.1.3):
- RxRelay (~> 5)
- RxSwift (~> 5)
- RxRelay (5.1.3):
- RxSwift (~> 5)
- RxSwift (5.1.3)
If you want to update, run pod update --repo-update instead then you can recheck the Podfile.lock again.

Related

GTMSessionFetcher.h -Multiple Errors after Updating Pod

When I update my pods, I constantly get multiple GTMSessionFetcher.h errors.
Duplicate interface definition for class 'GTMSessionFetcherUserDefaultsFactory'
Redefinition of 'GTMSessionFetcherError'
Redefinition of 'GTMSessionFetcherStatus'
Duplicate protocol definition of 'GTMFetcherDecoratorProtocol' is ignored
Duplicate protocol definition of 'GTMSessionFetcherServiceProtocol' is ignored
Cannot find protocol declaration for 'GTMFetcherDecoratorProtocol'; did you mean 'GTMFetcherAuthorizationProtocol'? ; Reference to 'GTMFetcherDecoratorProtocol' is ambiguous
'GTMFetcherAuthorizationProtocol' is deprecated: implement GTMSessionFetcherAuthorizer instead
Duplicate protocol definition of 'GTMFetcherAuthorizationProtocol' is ignored
No type or protocol named 'GTMSessionFetcherServiceProtocol' ; Reference to 'GTMSessionFetcherServiceProtocol' is ambiguous
I then deleted the pod file, and reinstalled from scratch:
$ rm -rf ~/Library/Developer/Xcode/DerivedData
$ pod deintegrate
$ pod clean
$ rm Podfile
$ pod cache clean --all
$ pod init
// reinstalled the same pods
And the same errors keep appearing. I also cleaned the project.
One very odd thing that I noticed is my Firebase pod only installs versions 9.6.0 when Firebase is currently on version 10.4.0. It installs 9.6.0 for both updating the pod and freshly installing the pod.
Any idea what the issue is?
Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, ’10.0’
install! 'cocoapods', :deterministic_uuids => false
target 'MyAppName' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyAppName
#pod 'Firebase' // tried with and without this, same problems
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'
pod 'Google-Mobile-Ads-SDK'
pod 'PersonalizedAdConsent'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GoogleSignIn'
pod 'GoogleAnalytics'
pod 'AFNetworking'
pod 'SwiftyJSON'
pod 'SDWebImage'
pod 'KeychainSwift'
pod 'IQKeyboardManagerSwift'
pod 'SVProgressHUD'
pod 'SwiftyStoreKit'
pod "SwiftPhoneNumberFormatter"
pod 'ObjectMapper'
pod 'InstantSearchClient', '~> 7.0'
pod 'ReachabilitySwift'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end
Podfile.lock:
PODS:
- AFNetworking (4.0.1):
- AFNetworking/NSURLSession (= 4.0.1)
- AFNetworking/Reachability (= 4.0.1)
- AFNetworking/Security (= 4.0.1)
- AFNetworking/Serialization (= 4.0.1)
- AFNetworking/UIKit (= 4.0.1)
- AFNetworking/NSURLSession (4.0.1):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (4.0.1)
- AFNetworking/Security (4.0.1)
- AFNetworking/Serialization (4.0.1)
- AFNetworking/UIKit (4.0.1):
- AFNetworking/NSURLSession
- AppAuth (1.6.0):
- AppAuth/Core (= 1.6.0)
- AppAuth/ExternalUserAgent (= 1.6.0)
- AppAuth/Core (1.6.0)
- AppAuth/ExternalUserAgent (1.6.0):
- AppAuth/Core
- Firebase/Auth (9.6.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 9.6.0)
- Firebase/Core (9.6.0):
- Firebase/CoreOnly
- FirebaseAnalytics (~> 9.6.0)
- Firebase/CoreOnly (9.6.0):
- FirebaseCore (= 9.6.0)
- Firebase/Database (9.6.0):
- Firebase/CoreOnly
- FirebaseDatabase (~> 9.6.0)
- Firebase/DynamicLinks (9.6.0):
- Firebase/CoreOnly
- FirebaseDynamicLinks (~> 9.6.0)
- Firebase/Functions (9.6.0):
- Firebase/CoreOnly
- FirebaseFunctions (~> 9.6.0)
- Firebase/Installations (9.6.0):
- Firebase/CoreOnly
- FirebaseInstallations (~> 9.6.0)
- Firebase/Messaging (9.6.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 9.6.0)
- Firebase/Storage (9.6.0):
- Firebase/CoreOnly
- FirebaseStorage (~> 9.6.0)
- FirebaseAnalytics (9.6.0):
- FirebaseAnalytics/AdIdSupport (= 9.6.0)
- FirebaseCore (~> 9.0)
- FirebaseInstallations (~> 9.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/MethodSwizzler (~> 7.7)
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseAnalytics/AdIdSupport (9.6.0):
- FirebaseCore (~> 9.0)
- FirebaseInstallations (~> 9.0)
- GoogleAppMeasurement (= 9.6.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/MethodSwizzler (~> 7.7)
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseAppCheckInterop (9.6.0)
- FirebaseAuth (9.6.0):
- FirebaseCore (~> 9.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/Environment (~> 7.7)
- GTMSessionFetcher/Core (< 3.0, >= 1.7)
- FirebaseAuthInterop (9.6.0)
- FirebaseCore (9.6.0):
- FirebaseCoreDiagnostics (~> 9.0)
- FirebaseCoreInternal (~> 9.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- FirebaseCoreDiagnostics (9.6.0):
- GoogleDataTransport (< 10.0.0, >= 9.1.4)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseCoreExtension (9.6.0):
- FirebaseCore (~> 9.0)
- FirebaseCoreInternal (9.6.0):
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- FirebaseCrashlytics (9.6.0):
- FirebaseCore (~> 9.0)
- FirebaseInstallations (~> 9.0)
- GoogleDataTransport (< 10.0.0, >= 9.1.4)
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseDatabase (9.6.0):
- FirebaseCore (~> 9.0)
- leveldb-library (~> 1.22)
- FirebaseDynamicLinks (9.6.0):
- FirebaseCore (~> 9.0)
- FirebaseFunctions (9.6.0):
- FirebaseAppCheckInterop (~> 9.0)
- FirebaseAuthInterop (~> 9.0)
- FirebaseCore (~> 9.0)
- FirebaseCoreExtension (~> 9.0)
- FirebaseMessagingInterop (~> 9.0)
- FirebaseSharedSwift (~> 9.0)
- GTMSessionFetcher/Core (< 3.0, >= 1.7)
- FirebaseInstallations (9.6.0):
- FirebaseCore (~> 9.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/UserDefaults (~> 7.7)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (9.6.0):
- FirebaseCore (~> 9.0)
- FirebaseInstallations (~> 9.0)
- GoogleDataTransport (< 10.0.0, >= 9.1.4)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Reachability (~> 7.7)
- GoogleUtilities/UserDefaults (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseMessagingInterop (9.6.0)
- FirebaseSharedSwift (9.6.0)
- FirebaseStorage (9.6.0):
- FirebaseAppCheckInterop (~> 9.0)
- FirebaseAuthInterop (~> 9.0)
- FirebaseCore (~> 9.0)
- FirebaseCoreExtension (~> 9.0)
- FirebaseStorageInternal (~> 9.0)
- FirebaseStorageInternal (9.6.0):
- FirebaseCore (~> 9.0)
- GTMSessionFetcher/Core (< 3.0, >= 1.7)
- Google-Mobile-Ads-SDK (9.14.0):
- GoogleAppMeasurement (< 11.0, >= 7.0)
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleAnalytics (3.20.0)
- GoogleAppMeasurement (9.6.0):
- GoogleAppMeasurement/AdIdSupport (= 9.6.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/MethodSwizzler (~> 7.7)
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (9.6.0):
- GoogleAppMeasurement/WithoutAdIdSupport (= 9.6.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/MethodSwizzler (~> 7.7)
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (9.6.0):
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/MethodSwizzler (~> 7.7)
- GoogleUtilities/Network (~> 7.7)
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.0):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMaps (4.2.0):
- GoogleMaps/Maps (= 4.2.0)
- GoogleMaps/Base (4.2.0)
- GoogleMaps/Maps (4.2.0):
- GoogleMaps/Base
- GooglePlaces (4.2.0):
- GoogleMaps/Base (= 4.2.0)
- GoogleSignIn (7.0.0):
- AppAuth (~> 1.5)
- GTMAppAuth (< 3.0, >= 1.3)
- GTMSessionFetcher/Core (< 4.0, >= 1.1)
- GoogleUserMessagingPlatform (2.0.1)
- GoogleUtilities/AppDelegateSwizzler (7.11.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.11.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.11.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.11.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.0)"
- GoogleUtilities/Reachability (7.11.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.11.0):
- GoogleUtilities/Logger
- GTMAppAuth (2.0.0):
- AppAuth/Core (~> 1.6)
- GTMSessionFetcher/Core (< 4.0, >= 1.5)
- GTMSessionFetcher/Core (2.3.0)
- InstantSearchClient (7.0.5)
- IQKeyboardManagerSwift (6.5.11)
- KeychainSwift (20.0.0)
- leveldb-library (1.22.1)
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- ObjectMapper (4.2.0)
- PersonalizedAdConsent (1.0.5)
- PromisesObjC (2.1.1)
- ReachabilitySwift (5.0.0)
- SDWebImage (5.15.0):
- SDWebImage/Core (= 5.15.0)
- SDWebImage/Core (5.15.0)
- SVProgressHUD (2.2.5)
- SwiftPhoneNumberFormatter (1.5)
- SwiftyJSON (5.0.1)
- SwiftyStoreKit (0.16.1)
DEPENDENCIES:
- AFNetworking
- Firebase/Auth
- Firebase/Core
- Firebase/Database
- Firebase/DynamicLinks
- Firebase/Functions
- Firebase/Installations
- Firebase/Messaging
- Firebase/Storage
- FirebaseAnalytics
- FirebaseCrashlytics
- Google-Mobile-Ads-SDK
- GoogleAnalytics
- GoogleMaps
- GooglePlaces
- GoogleSignIn
- InstantSearchClient (~> 7.0)
- IQKeyboardManagerSwift
- KeychainSwift
- ObjectMapper
- PersonalizedAdConsent
- ReachabilitySwift
- SDWebImage
- SVProgressHUD
- SwiftPhoneNumberFormatter
- SwiftyJSON
- SwiftyStoreKit
SPEC REPOS:
trunk:
- AFNetworking
- AppAuth
- Firebase
- FirebaseAnalytics
- FirebaseAppCheckInterop
- FirebaseAuth
- FirebaseAuthInterop
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreExtension
- FirebaseCoreInternal
- FirebaseCrashlytics
- FirebaseDatabase
- FirebaseDynamicLinks
- FirebaseFunctions
- FirebaseInstallations
- FirebaseMessaging
- FirebaseMessagingInterop
- FirebaseSharedSwift
- FirebaseStorage
- FirebaseStorageInternal
- Google-Mobile-Ads-SDK
- GoogleAnalytics
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleMaps
- GooglePlaces
- GoogleSignIn
- GoogleUserMessagingPlatform
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
- InstantSearchClient
- IQKeyboardManagerSwift
- KeychainSwift
- leveldb-library
- nanopb
- ObjectMapper
- PersonalizedAdConsent
- PromisesObjC
- ReachabilitySwift
- SDWebImage
- SVProgressHUD
- SwiftPhoneNumberFormatter
- SwiftyJSON
- SwiftyStoreKit
SPEC CHECKSUMS:
AFNetworking: 3bd23...
AppAuth: 8fca6...
Firebase: 5ae8...
FirebaseAnalytics: 89ad...
FirebaseAppCheckInterop: d5ec...
FirebaseAuth: e4a5...
FirebaseAuthInterop: b6cf...
FirebaseCore: 2082...
FirebaseCoreDiagnostics: 99a49...
FirebaseCoreExtension: e834...
FirebaseCoreInternal: bca7...
FirebaseCrashlytics: 3210...
FirebaseDatabase: 3de1...
FirebaseDynamicLinks: 894e...
FirebaseFunctions: f9d4...
FirebaseInstallations: 0a11...
FirebaseMessaging: a4d7...
FirebaseMessagingInterop: 34878...
FirebaseSharedSwift: 2269...
FirebaseStorage: 1fea...
FirebaseStorageInternal: 81d8...
Google-Mobile-Ads-SDK: 4fe6...
GoogleAnalytics: 01e4...
GoogleAppMeasurement: 6de2...
GoogleDataTransport: 1c81...
GoogleMaps: eb03...
GooglePlaces: 196a...
GoogleSignIn: b232...
GoogleUserMessagingPlatform: 5f8b...
GoogleUtilities: c2bd...
GTMAppAuth: 99fb...
GTMSessionFetcher: 3a63...
InstantSearchClient: cd4b...
IQKeyboardManagerSwift: c7955...
KeychainSwift: 0ce6...
leveldb-library: 50c7b...
nanopb: b552...
ObjectMapper: 1eb4...
PersonalizedAdConsent: dbeca...
PromisesObjC: ab77f...
ReachabilitySwift: 98503...
SDWebImage: 9bec4...
SVProgressHUD: 1428a...
SwiftPhoneNumberFormatter: 0cc91...
SwiftyJSON: 2f33a...
SwiftyStoreKit: 6b9c0...
PODFILE CHECKSUM: c039d...
COCOAPODS: 1.11.3
Error Pics:
I got the answer from #PaulBeusterien
here "The CocoaPods installation directory should not be searched recursively for include paths."
Under User Header Search Paths I set Pods/** recursively, and setting it recursively was the problem.

Firebase iOS - Multiple errors while archiving in Xcode 13.4 or Xcode 14.1(iOS 15 or iOS 16)

Getting multiple errors while archiving the project but app build/run fine. Tried many solutions related to cleaning derived data, deintegrate/integrate/install pods, pod clean etc.('GoogleUtilities/GULURLSessionDataResponse.h' file not found) (https://github.com/firebase/firebase-ios-sdk/issues/2233)
Podfile :
source 'https://github.com/CocoaPods/Specs.git'
install! 'cocoapods', :deterministic_uuids => false
target 'Test' do
platform :ios, '14.3'
use_frameworks!
inhibit_all_warnings!
pod 'SwiftLint'
pod 'KeychainAccess'
pod 'AEXML'
pod 'GooglePlaces'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'Firebase/RemoteConfig'
pod 'CocoaDebug', :configurations => ['Debug']
pod 'atlantis-proxyman'
target 'TestTests' do
inherit! :search_paths
end
end
Podfile.lock
PODS:
- AEXML (4.6.1)
- atlantis-proxyman (1.20.0)
- CocoaDebug (1.7.2)
- Firebase/Analytics (10.2.0):
- Firebase/Core
- Firebase/Core (10.2.0):
- Firebase/CoreOnly
- FirebaseAnalytics (~> 10.2.0)
- Firebase/CoreOnly (10.2.0):
- FirebaseCore (= 10.2.0)
- Firebase/Crashlytics (10.2.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 10.2.0)
- Firebase/RemoteConfig (10.2.0):
- Firebase/CoreOnly
- FirebaseRemoteConfig (~> 10.2.0)
- FirebaseABTesting (10.2.0):
- FirebaseCore (~> 10.0)
- FirebaseAnalytics (10.2.0):
- FirebaseAnalytics/AdIdSupport (= 10.2.0)
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- GoogleUtilities/Network (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseAnalytics/AdIdSupport (10.2.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleAppMeasurement (= 10.2.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- GoogleUtilities/Network (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseCore (10.2.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreInternal (10.2.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.2.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.2.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseRemoteConfig (10.2.0):
- FirebaseABTesting (~> 10.0)
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- GoogleAppMeasurement (10.2.0):
- GoogleAppMeasurement/AdIdSupport (= 10.2.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- GoogleUtilities/Network (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (10.2.0):
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.2.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- GoogleUtilities/Network (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (10.2.0):
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- GoogleUtilities/Network (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.0):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GooglePlaces (7.2.0)
- GoogleUtilities/AppDelegateSwizzler (7.10.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.10.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.10.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.10.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.10.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.10.0)"
- GoogleUtilities/Reachability (7.10.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.10.0):
- GoogleUtilities/Logger
- KeychainAccess (4.2.2)
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- PromisesObjC (2.1.1)
- SwiftLint (0.50.1)
DEPENDENCIES:
- AEXML
- atlantis-proxyman
- CocoaDebug
- Firebase/Analytics
- Firebase/Crashlytics
- Firebase/RemoteConfig
- GooglePlaces
- KeychainAccess
- SwiftLint
SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- AEXML
- atlantis-proxyman
- CocoaDebug
- Firebase
- FirebaseABTesting
- FirebaseAnalytics
- FirebaseCore
- FirebaseCoreInternal
- FirebaseCrashlytics
- FirebaseInstallations
- FirebaseRemoteConfig
- GoogleAppMeasurement
- GoogleDataTransport
- GooglePlaces
- GoogleUtilities
- KeychainAccess
- nanopb
- PromisesObjC
- SwiftLint
SPEC CHECKSUMS:
AEXML: 1e255ecc6597212f97a7454a69ebd3ede64ac1cf
atlantis-proxyman: c3ca06216fbb5cf87a83de3911f955dcb1615048
CocoaDebug: 61cf93ada6ce8f3407507dc01f9b874d91ac1d5c
Firebase: a3ea7eba4382afd83808376edb99acdaff078dcf
FirebaseABTesting: 22840e1573ea2fbb519f5a2f1c93be7232508358
FirebaseAnalytics: 24a15e58e505abcedc3017b6f7c206fbfa964580
FirebaseCore: 813838072b797b64f529f3c2ee35e696e5641dd1
FirebaseCoreInternal: 091bde13e47bb1c5e9fe397634f3593dc390430f
FirebaseCrashlytics: df7406152189d48346deafb716806d7bd9ebb573
FirebaseInstallations: 004915af170935e3a583faefd5f8bc851afc220f
FirebaseRemoteConfig: 5bdeadd64a042dad0f6a38fee7e017818240c3d2
GoogleAppMeasurement: 3bc3a6484b7bb20dd8489242c4dd3c92a3e5107b
GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f
GooglePlaces: 590dea495d69431454ea92217033c3184995165d
GoogleUtilities: bad72cb363809015b1f7f19beb1f1cd23c589f95
KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
SwiftLint: 6b0cf1f4d619808dbc16e4fab064ce6fc79f090b
PODFILE CHECKSUM: 330733d16ffa7f8b7749843d82f340e9c137b794
COCOAPODS: 1.11.3
As shown in Google's Firebase Docs, the pods have been updated to have a different format. For example, to install the Firebase Analytics library, it would no longer be pod 'Firebase/Analytics', but rather pod 'FirebaseAnalytics'.
It's likely that the problem is from Configuration.
When build/run: use Debug configuration
When Archive: use Release-Prod configuration.
There is a difference between them, I guess.

Installation of any new Cocoapod is causing build failure

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

ld: library not found for -lFirebaseCore when integrating react-native-firebase in an existing react native project

I've followed the guideline for integrating the Firebase SDK as a pod in a react native project (described in https://rnfirebase.io/docs/v5.x.x/installation/ios), yet I keep bumping into this error:
ld: library not found for -lFirebaseCore
My Podfile.lock:
PODS:
- AppCenter/Analytics (1.14.0):
- AppCenter/Core
- AppCenter/Core (1.14.0)
- AppCenter/Crashes (1.14.0):
- AppCenter/Core
- AppCenterReactNativeShared (1.13.0):
- AppCenter/Core (= 1.14.0)
- Firebase/Core (5.20.2):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.8.1)
- Firebase/CoreOnly (5.20.2):
- FirebaseCore (= 5.4.1)
- Firebase/Messaging (5.20.2):
- Firebase/CoreOnly
- FirebaseMessaging (= 3.5.0)
- FirebaseAnalytics (5.8.1):
- FirebaseCore (~> 5.4)
- FirebaseInstanceID (~> 3.8)
- GoogleAppMeasurement (= 5.8.1)
- GoogleUtilities/AppDelegateSwizzler (~> 5.2)
- GoogleUtilities/MethodSwizzler (~> 5.2)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- FirebaseAnalyticsInterop (1.2.0)
- FirebaseCore (5.4.1):
- GoogleUtilities/Environment (~> 5.2)
- GoogleUtilities/Logger (~> 5.2)
- FirebaseInstanceID (3.8.1):
- FirebaseCore (~> 5.2)
- GoogleUtilities/Environment (~> 5.2)
- GoogleUtilities/UserDefaults (~> 5.2)
- FirebaseMessaging (3.5.0):
- FirebaseAnalyticsInterop (~> 1.1)
- FirebaseCore (~> 5.2)
- FirebaseInstanceID (~> 3.6)
- GoogleUtilities/Environment (~> 5.3)
- GoogleUtilities/Reachability (~> 5.3)
- GoogleUtilities/UserDefaults (~> 5.3)
- Protobuf (~> 3.1)
- GoogleAppMeasurement (5.8.1):
- GoogleUtilities/AppDelegateSwizzler (~> 5.2)
- GoogleUtilities/MethodSwizzler (~> 5.2)
- GoogleUtilities/Network (~> 5.2)
- "GoogleUtilities/NSData+zlib (~> 5.2)"
- nanopb (~> 0.3)
- GoogleUtilities/AppDelegateSwizzler (5.8.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (5.8.0)
- GoogleUtilities/Logger (5.8.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (5.8.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (5.8.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (5.8.0)"
- GoogleUtilities/Reachability (5.8.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (5.8.0):
- GoogleUtilities/Logger
- 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.8.0)
DEPENDENCIES:
- AppCenter/Analytics (~> 1.14.0)
- AppCenter/Crashes (~> 1.14.0)
- AppCenterReactNativeShared (~> 1.13.0)
- Firebase/Core (~> 5.20.1)
- Firebase/Messaging (~> 5.20.1)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AppCenter
- AppCenterReactNativeShared
- Firebase
- FirebaseAnalytics
- FirebaseAnalyticsInterop
- FirebaseCore
- FirebaseInstanceID
- FirebaseMessaging
- GoogleAppMeasurement
- GoogleUtilities
- nanopb
- Protobuf
Podfiles:
target '<my_app_name>-devel' do
pod 'AppCenter/Crashes', '~> 1.14.0'
pod 'AppCenter/Analytics', '~> 1.14.0'
pod 'AppCenterReactNativeShared', '~> 1.13.0'
pod 'Firebase/Core', '~> 5.20.1'
pod 'Firebase/Messaging', '~> 5.20.1'
# Add new pods below this line
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for <my_app_name>-devel
end
target '<my_app_name>-prod' do
pod 'AppCenter/Crashes', '~> 1.14.0'
pod 'AppCenter/Analytics', '~> 1.14.0'
pod 'AppCenterReactNativeShared', '~> 1.13.0'
pod 'Firebase/Core', '~> 5.20.1'
pod 'Firebase/Messaging', '~> 5.20.1'
# Add new pods below this line
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for <my_app_name>-prod
end
React Native version: 0.59.5
React Native Firebase version: 5.20.1
Also tried with version: 5.4.3, 5.4.4
The documentation on this is pretty sparse, so any help or suggestions are welcomed

Xcode -FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

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'

Resources