I recently updated react native to 0.66.4 and along with that react-native-push-notification and #community/react-native-push-notification-ios to their latest versions. Android is working perfectly, but ios is refusing to handle push notifications.
While the app is closed, I am able to receive push notifications, but when tapped, the app opens and onNotification is never called. If I send a test push notification while the app is opened, onNotifcation is never called either.
I have since tried switching over to react-native-firebase/messaging and am getting the same scenario.
I have ios setup to handle push notifications and background fetch etc, as it was working before upgrading react native.
Was working with:
"#react-native-community/push-notification-ios": "^1.8.0",
"react": "17.0.1",
"react-native": "^0.64.2",
"react-native-push-notification": "7.2.0",
not working with
Package.json
"#react-native-firebase/app": "^15.2.0",
"#react-native-firebase/messaging": "^15.2.0",
"react": "17.0.2",
"react-native": "^0.66.4",
podfile.lock
Firebase/CoreOnly (9.3.0):
- FirebaseCore (= 9.3.0)
- Firebase/Messaging (9.3.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 9.3.0)
- FirebaseCore (9.3.0):
- FirebaseCoreDiagnostics (~> 9.0)
- FirebaseCoreInternal (~> 9.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- FirebaseCoreDiagnostics (9.3.0):
- GoogleDataTransport (< 10.0.0, >= 9.1.4)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseCoreInternal (9.3.0):
- "GoogleUtilities/NSData+zlib (~> 7.7)"
- FirebaseInstallations (9.3.0):
- FirebaseCore (~> 9.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/UserDefaults (~> 7.7)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (9.3.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)
...
- RNFBApp (15.2.0):
- Firebase/CoreOnly (= 9.3.0)
- React-Core
- RNFBMessaging (15.2.0):
- Firebase/Messaging (= 9.3.0)
- React-Core
- RNFBApp
Sending test notifications with
curl -v \
--header "apns-topic: ${TOPIC}" \
--header "apns-push-type: alert" \
--cert "${CERTIFICATE_FILE_NAME}" --cert-type DER \
--key "${CERTIFICATE_KEY_FILE_NAME}" --key-type PEM \
--data '{"aps":{"alert":"test"}}' \
--http2 https://${APNS_HOST_NAME}/3/device/${DEVICE_TOKEN}
Related
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.
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.
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.
When I try to run a ionic project in Xcode I have a ERROR:
Thread 1: Exception: "-[FIRApp isDataCollectionDefaultEnabled]: unrecognized selector sent to instance 0x600002c859e0"
My pods in config.xml:
<pod name="GoogleSignIn" version="4.4.0" />
<pod name="GoogleAppUtilities" />
<pod name="GoogleAuthUtilities" />
<pod name="GoogleUtilities" />
<pod name="Firebase/Auth" />
<pod name="Firebase/Analytics" version="4.2.0" />
<pod name="Firebase/Core" />
<pod name="Firebase/Performance" />
<pod name="Firebase/RemoteConfig" />
<pod name="FBSDKCoreKit" version="5.8.0" />
<pod name="FBSDKLoginKit" version="5.8.0" />
<pod name="FBSDKShareKit" version="5.8.0" />
My package.json which related to IOS:
"cordova-browser": "^5.0.4",
"cordova-ios": "6.1.0",
"cordova-plugin-add-swift-support": "^2.0.2",
"cordova-plugin-advanced-http": "^2.5.1",
"cordova-plugin-browsertab": "^0.2.0",
"cordova-plugin-buildinfo": "^4.0.0",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-cleartext": "^1.0.0",
"cordova-plugin-cocoapod-support": "^1.6.2",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-facebook4": "^6.4.0",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-firebase": "^2.0.5",
"cordova-plugin-firebase-analytics": "^4.3.1",
"cordova-plugin-firebase-authentication": "^3.3.1",
"cordova-plugin-googleplus": "^7.0.2",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-photo-library-sism": "^2.2.97",
"cordova-plugin-telerik-imagepicker": "^2.3.3",
"cordova-res": "^0.15.1",
What I tried to do:
Create folder 'Resource' with GoogleService-Info.plist in 'platforms/iOS/Resource' file;
Change in File->Workspace settings->Build system from 'New Build System' to 'Legacy Build System';
Run such commands: pod deintegrate && pod cache clean --all and pod install;
I fixed all warnings with pods ( added $(inherited) )
Tried to remove all versions in pods. See Podfile.lock
I cannot figure out what happening. Please help me.
Podfile.lock
- FBSDKCoreKit (5.8.0):
- FBSDKCoreKit/Basics (= 5.8.0)
- FBSDKCoreKit/Core (= 5.8.0)
- FBSDKCoreKit/Basics (5.8.0)
- FBSDKCoreKit/Core (5.8.0):
- FBSDKCoreKit/Basics
- FBSDKLoginKit (5.8.0):
- FBSDKLoginKit/Login (= 5.8.0)
- FBSDKLoginKit/Login (5.8.0):
- FBSDKCoreKit (~> 5.0)
- FBSDKShareKit (5.8.0):
- FBSDKShareKit/Share (= 5.8.0)
- FBSDKShareKit/Share (5.8.0):
- FBSDKCoreKit (~> 5.0)
- Firebase/Analytics (4.2.0):
- Firebase/Core
- Firebase/Auth (4.2.0):
- Firebase/Core
- FirebaseAuth (= 4.2.0)
- Firebase/Core (4.2.0):
- FirebaseAnalytics (= 4.0.3)
- FirebaseCore (= 4.0.7)
- Firebase/Performance (4.2.0):
- Firebase/Core
- FirebasePerformance (= 1.0.5)
- Firebase/RemoteConfig (4.2.0):
- Firebase/Core
- FirebaseRemoteConfig (= 2.0.3)
- FirebaseAnalytics (4.0.3):
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- nanopb (~> 0.3)
- FirebaseAuth (4.2.0):
- FirebaseAnalytics (~> 4.0)
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseCore (4.0.7):
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- nanopb (~> 0.3)
- FirebaseInstanceID (2.0.10):
- FirebaseCore (~> 4.0)
- FirebasePerformance (1.0.5):
- FirebaseAnalytics (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- GoogleToolboxForMac/Logger (~> 2.1)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- Protobuf (~> 3.1)
- FirebaseRemoteConfig (2.0.3):
- FirebaseAnalytics (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- Protobuf (~> 3.1)
- GoogleAppUtilities (1.1.2):
- GoogleSymbolUtilities (~> 1.1)
- GoogleAuthUtilities (2.0.2):
- GoogleNetworkingUtilities (~> 1.2)
- GoogleSymbolUtilities (~> 1.1)
- GoogleNetworkingUtilities (1.2.2):
- GoogleSymbolUtilities (~> 1.1)
- 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.2):
- GoogleToolboxForMac/Defines (= 2.2.2)
- GoogleToolboxForMac/Defines (2.2.2)
- GoogleToolboxForMac/Logger (2.2.2):
- GoogleToolboxForMac/Defines (= 2.2.2)
- "GoogleToolboxForMac/NSData+zlib (2.2.2)":
- GoogleToolboxForMac/Defines (= 2.2.2)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.2)":
- GoogleToolboxForMac/DebugUtils (= 2.2.2)
- GoogleToolboxForMac/Defines (= 2.2.2)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.2.2)"
- "GoogleToolboxForMac/NSString+URLArguments (2.2.2)"
- GoogleUtilities (6.7.1):
- GoogleUtilities/AppDelegateSwizzler (= 6.7.1)
- GoogleUtilities/Environment (= 6.7.1)
- GoogleUtilities/ISASwizzler (= 6.7.1)
- GoogleUtilities/Logger (= 6.7.1)
- GoogleUtilities/MethodSwizzler (= 6.7.1)
- GoogleUtilities/Network (= 6.7.1)
- "GoogleUtilities/NSData+zlib (= 6.7.1)"
- GoogleUtilities/Reachability (= 6.7.1)
- GoogleUtilities/SwizzlerTestHelpers (= 6.7.1)
- GoogleUtilities/UserDefaults (= 6.7.1)
- GoogleUtilities/AppDelegateSwizzler (6.7.1):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (6.7.1):
- PromisesObjC (~> 1.2)
- GoogleUtilities/ISASwizzler (6.7.1)
- GoogleUtilities/Logger (6.7.1):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (6.7.1):
- GoogleUtilities/Logger
- GoogleUtilities/Network (6.7.1):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (6.7.1)"
- GoogleUtilities/Reachability (6.7.1):
- GoogleUtilities/Logger
- GoogleUtilities/SwizzlerTestHelpers (6.7.1):
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/UserDefaults (6.7.1):
- GoogleUtilities/Logger
- GTMSessionFetcher/Core (1.4.0)
- nanopb (0.3.9011):
- nanopb/decode (= 0.3.9011)
- nanopb/encode (= 0.3.9011)
- nanopb/decode (0.3.9011)
- nanopb/encode (0.3.9011)
- PromisesObjC (1.2.9)
- Protobuf (3.12.0)
Remove version="4.2.0".
That version of Firebase is more than three years old. If you really want the old version to work, you may need to examine the Podfile.lock and restrict some other pods to old versions as well.
After Migrating react-native-firebase to #react-native-firebase
Error coming up
/Users/samridhgupta/Work/Development/TCD/classroom-door-react-native/ios/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9:
'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file
not found
on file
Pods > GoogleUtilities > AppDelegateSwizzler
#import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h"
PodLock File have these packages (GoogleUtilities/AppDelegateSwizzler)
Tried resetting the Pod by removing the Podlock file and then running Pod install.
Plus also tried removing the DerivedData still the issue remains
Gist from padlock file
- Firebase/Core (6.27.1):
- Firebase/CoreOnly
- FirebaseAnalytics (= 6.6.2)
- Firebase/CoreOnly (6.27.1):
- FirebaseCore (= 6.8.1)
- Firebase/Database (6.27.1):
- Firebase/CoreOnly
- FirebaseDatabase (~> 6.3.0)
- Firebase/Firestore (6.27.1):
- Firebase/CoreOnly
- FirebaseFirestore (~> 1.16.0)
- Firebase/Functions (6.27.1):
- Firebase/CoreOnly
- FirebaseFunctions (~> 2.6.0)
- Firebase/Messaging (6.27.1):
- Firebase/CoreOnly
- FirebaseMessaging (~> 4.5.0)
- Firebase/Storage (6.27.1):
- Firebase/CoreOnly
- FirebaseStorage (~> 3.7.0)
- FirebaseAnalytics (6.6.2):
- FirebaseCore (~> 6.8)
- FirebaseInstallations (~> 1.4)
- GoogleAppMeasurement (= 6.6.2)
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
- GoogleUtilities/MethodSwizzler (~> 6.0)
- GoogleUtilities/Network (~> 6.0)
- "GoogleUtilities/NSData+zlib (~> 6.0)"
- nanopb (~> 1.30905.0)
- FirebaseAuth (6.6.0):
- FirebaseCore (~> 6.8)
- GoogleUtilities/AppDelegateSwizzler (~> 6.5)
- GoogleUtilities/Environment (~> 6.5)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseCore (6.8.1):
- FirebaseCoreDiagnostics (~> 1.3)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- FirebaseCoreDiagnostics (1.5.0):
- GoogleDataTransport (~> 7.0)
- GoogleUtilities/Environment (~> 6.7)
- GoogleUtilities/Logger (~> 6.7)
- nanopb (~> 1.30905.0)
- FirebaseDatabase (6.3.0):
- FirebaseCore (~> 6.8)
- leveldb-library (~> 1.22)
- FirebaseFirestore (1.16.1):
- abseil/algorithm (= 0.20200225.0)
- abseil/base (= 0.20200225.0)
- abseil/memory (= 0.20200225.0)
- abseil/meta (= 0.20200225.0)
- abseil/strings/strings (= 0.20200225.0)
- abseil/time (= 0.20200225.0)
- abseil/types (= 0.20200225.0)
- FirebaseCore (~> 6.8)
- "gRPC-C++ (~> 1.28.0)"
- leveldb-library (~> 1.22)
- nanopb (~> 1.30905.0)
- FirebaseFunctions (2.6.0):
- FirebaseCore (~> 6.8)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseInstallations (1.5.0):
- FirebaseCore (~> 6.8)
- GoogleUtilities/Environment (~> 6.7)
- GoogleUtilities/UserDefaults (~> 6.7)
- PromisesObjC (~> 1.2)
- FirebaseInstanceID (4.5.0):
- FirebaseCore (~> 6.8)
- FirebaseInstallations (~> 1.0)
- GoogleUtilities/Environment (~> 6.7)
- GoogleUtilities/UserDefaults (~> 6.7)
- FirebaseMessaging (4.5.0):
- FirebaseCore (~> 6.8)
- FirebaseInstanceID (~> 4.3)
- GoogleUtilities/AppDelegateSwizzler (~> 6.5)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Reachability (~> 6.5)
- GoogleUtilities/UserDefaults (~> 6.5)
- Protobuf (>= 3.9.2, ~> 3.9)
- FirebaseStorage (3.7.0):
- FirebaseCore (~> 6.8)
- GTMSessionFetcher/Core (~> 1.1)
Comment if you need any other details which can help me resolving this issue
For now, you can work around by change code at file GULAppDelegateSwizzler.h
#import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h"
->
#import "GoogleUtilities/GULApplication.h"
Try 6.6.0, it works for me
pod 'GoogleUtilities', '6.6.0'
This is a script that will make the updates (suggested by https://stackoverflow.com/a/62906019/567524) automatically and will exist under source control:
In your podfile, add this to the post_install:
post_install do |installer|
...
# Workarounds
puts 'FIX Version Incompatibility with Firebase and GoogleUtilities (6.7.0)'
system("sed -i '' s=GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h=GoogleUtilities/GULApplication.h=g ./Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h")
end
In case someone encounter this in Cordova project with Firebase plugin, you need to downgrade Firebase/Core pod to version 6.0.0, i.e. replace:
<pod name="Firebase/Core" version="~> 6.0.0" />
with
<pod name="Firebase/Core" version="6.0.0" />
in the config.xml file.
It seems like the path to AppDelegateSwizzler changed here https://github.com/firebase/firebase-ios-sdk/commit/3f556ddb9e4a79ed282e674b483ea99c7ae1f8c8#diff-8a5c430b661a4b0572837ada64f3cc95
Upgrading to FirebaseAuth 6.7 (from 6.6) resolved this for me.
Looks like this may have just been fixed. There was a bug upstream and they have fixed it.
https://github.com/firebase/firebase-ios-sdk/pull/6051
You should be able to run this to get the fixed version.
pod update