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
Related
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.
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'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
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.