I have updated my cocoapods
sudo gem install CocoaPods
and update my pods now I can't compile my iOS project
'GoogleDataTransport/GDTCCTLibrary/Private/GDTCCTUploadOperation.h' file not found
Also was getting GULLogger.h not found (before doing pod reintegrate)
Anyone have a solution or a reason why this is happening?
Thanks in advance
Podfile
pod 'SwiftyJSON'
pod 'GoogleMaps'
pod 'RealmSwift', '=10.20.0'
pod 'AWSS3'
pod 'AWSCognito'
pod 'AWSMobileClient'
pod 'AWSPinpoint'
pod 'Plaid'
pod 'Firebase/Core'
pod 'FirebaseAnalytics'
pod 'FirebaseMessaging'
pod 'FirebaseAuth'
pod 'FirebaseFirestore'
pod 'FirebaseFunctions'
pod 'FirebaseInAppMessaging'
pod 'FirebaseInstanceID'
pod 'FirebasePerformance'
pod 'FirebaseRemoteConfig'
pod 'FirebaseCrashlytics'
pod 'Firebase/AdMob'
pod 'SwiftLint'
pod 'SwiftGen'
pod 'SDWebImage'
pod 'Reusable'
pod 'SYBadgeButton'
pod 'Instructions'
Downloading dependencies
Installing AWSAuthCore (2.19.1)
Installing AWSCognito (2.19.1)
Installing AWSCognitoIdentityProvider (2.19.1)
Installing AWSCognitoIdentityProviderASF (2.19.1)
Installing AWSCore (2.19.1)
Installing AWSMobileClient (2.19.1)
Installing AWSPinpoint (2.19.1)
Installing AWSS3 (2.19.1)
Installing BoringSSL-GRPC (0.0.7)
Installing Firebase (3.6.0)
Installing FirebaseABTesting (8.10.0)
Installing FirebaseAnalytics (3.4.2)
Installing FirebaseAnalyticsInterop (1.5.0)
Installing FirebaseAuth (8.10.0)
Installing FirebaseCore (8.10.0)
Installing FirebaseCoreDiagnostics (8.10.0)
Installing FirebaseCrashlytics (8.10.0)
Installing FirebaseFirestore (8.10.0)
Installing FirebaseFunctions (8.10.0)
Installing FirebaseInAppMessaging (0.13.0)
Installing FirebaseInstallations (8.10.0)
Installing FirebaseInstanceID (1.0.9)
Installing FirebaseMessaging (8.10.0)
Installing FirebasePerformance (8.10.0)
Installing FirebaseRemoteConfig (8.10.0)
Installing GTMSessionFetcher (1.7.0)
Installing Google-Mobile-Ads-SDK (7.11.0)
Installing GoogleDataTransport (9.1.2)
Installing GoogleInterchangeUtilities (1.2.2)
Installing GoogleMaps (6.0.1)
Installing GoogleSymbolUtilities (1.1.2)
Installing GoogleUtilities (1.3.2)
Installing GoogleUtilities (7.6.0)
Installing Instructions (2.1.1)
Installing Plaid (2.3.1)
Installing PromisesObjC (2.0.0)
Installing Realm (10.20.0)
Installing RealmSwift (10.20.0)
Installing Reusable (4.1.2)
Installing SDWebImage (5.12.1)
Installing SYBadgeButton (1.1.0)
Installing SwiftGen (6.5.1)
Installing SwiftLint (0.45.1)
Installing SwiftyJSON (5.0.1)
Installing abseil (0.20200225.0)
Installing gRPC-C++ (1.28.2)
Installing gRPC-Core (1.28.2)
Installing leveldb-library (1.22.1)
Installing nanopb (2.30908.0)
Generating Pods project
Integrating client project
Try pod deintegrate and pod update and make sure that FirebaseAnalytics updates to match the other Firebase products. Also, the two versions of GoogleUtilities is problematic.
If pod deintegrate doesn't solve that issue, you'll likely need to dig deeper to understand what's causing the bad configuration. The Podfile.lock file should provide some clues.
Related
I upgraded flutter via flutter upgrade to 3.7. And now im getting the following issue when I flutter build macos my application.
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 9.3.0, ~> 9.3.0)
In Podfile:
firebase_auth (from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`) was resolved to 3.11.2, which depends on
Firebase/CoreOnly (~> 9.6.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `firebase_auth`.
You should run `pod update Firebase/CoreOnly` to apply changes you've made.
I have tried every suggestion such as
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
arch -x86_64 pod install --repo-update
Deleting Podfiles.
Deleting PodLock.
Has someone else come across the same issue and have a resolution for me by any chance?
To be able to flutter clean and build my application with flutter 3.7
Solution: It was to do with the version of Firebase, seemed to be conflicting issues with version and depednecies. In the Podspec replace each firebase related item as follows:
firebase_core: ^1.20.1
TO
firebase_core: 1.20.1
Started working on an outdated project that was developed in Swift 3 and Xcode8.
Trying to make it work under Xcode 10 and 9 (have them separately). Updated every known location with target platform to 11 and swift versions to 4/5. There were plenty of outdated pods that cause build errors, so I updated them with pod update and pod install. However, Xcode does not pick up the new versions, specifically SKPhotoBrowser and SwiftDate stay on versions 4.1.0 and 4.3.0 respectively, even though pod install states that versions 6.1.0 and 6.0.3 are installed.
The Podfile:
# Uncomment this line to define a global platform for your project
use_frameworks!
platform :ios, '11.0'
# Firebase pods
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/Core'
pod 'GoogleSignIn'
#Facebook Authentication Pods
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'FacebookCore'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
# Lottie Animation Framework
pod 'lottie-ios'
# Regular pods
pod 'AFNetworking'
pod 'Alamofire'
pod 'BRYXBanner'
pod 'Crashlytics'
pod 'DZNEmptyDataSet'
pod 'Fabric'
pod 'Instabug'
pod 'MBProgressHUD'
pod 'PromiseKit'
pod 'SDWebImage'
pod 'SKPhotoBrowser'
pod 'SkyFloatingLabelTextField'
pod 'Stripe' ##, :inhibit_warnings => true
pod 'SVProgressHUD'
pod 'SwiftDate'
pod 'TRVideoView'
pod 'TwicketSegmentedControl'
target 'AppName' do
end
pod install:
Analyzing dependencies
Downloading dependencies
Installing AFNetworking 3.2.1 (was 3.1.0)
Installing Alamofire 4.8.2 (was 4.6.0)
Installing BRYXBanner 0.8.4 (was 0.8.0)
Installing Crashlytics 3.13.1 (was 3.9.3)
Using DZNEmptyDataSet (1.8.1)
Installing FBSDKCoreKit 5.0.2 (was 4.29.0)
Installing FBSDKLoginKit 5.0.2 (was 4.29.0)
Installing FBSDKShareKit 5.0.2 (was 4.29.0)
Installing Fabric 1.10.1 (was 1.7.2)
Installing FacebookCore 0.7.0 (was 0.3.0)
Installing Firebase 5.20.2 (was 4.7.0)
Installing FirebaseAnalytics 5.8.1 (was 4.0.5)
Installing FirebaseAnalyticsInterop (1.2.0)
Installing FirebaseAuth 5.4.2 (was 4.4.0)
Installing FirebaseAuthInterop (1.0.0)
Installing FirebaseCore 5.4.1 (was 4.0.12)
Installing FirebaseCrash 3.1.1 (was 2.0.2)
Installing FirebaseDatabase 5.1.1 (was 4.1.2)
Installing FirebaseInstanceID 3.8.1 (was 2.0.7)
Installing FirebaseMessaging 3.5.0 (was 2.0.7)
Installing FirebaseStorage 3.1.1 (was 2.1.0)
Installing GTMSessionFetcher 1.2.2 (was 1.1.12)
Installing GoogleAppMeasurement (5.8.1)
Installing GoogleSignIn 4.4.0 (was 4.1.1)
Installing GoogleToolboxForMac 2.2.1 (was 2.1.3)
Installing GoogleUtilities (5.8.0)
Installing Instabug 8.4.1 (was 7.3.14)
Using MBProgressHUD (1.1.0)
Installing PromiseKit 6.8.5 (was 4.5.0)
Installing Protobuf 3.8.0 (was 3.5.0)
Installing SDWebImage 5.0.6 (was 4.2.2)
Installing SKPhotoBrowser 6.1.0 (was 4.1.0) <- explicit problem here
Installing SVProgressHUD 2.2.5 (was 2.2.2)
Installing SkyFloatingLabelTextField 3.7.0 (was 3.4.0)
Installing Stripe 15.0.1 (was 11.5.0)
Installing SwiftDate 6.0.3 (was 4.3.0) <- and here
Using TRVideoView (0.1.4)
Installing TwicketSegmentedControl 0.1.2
Using leveldb-library (1.20)
Installing lottie-ios 3.1.0 (was 2.1.5)
Installing nanopb 0.3.901 (was 0.3.8)
Removing Bolts
Removing GTMOAuth2
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 28 dependencies from the Podfile and 41 total pods installed.
Steps taken:
all Xcode cleans - cmd + shift + k, cmd + shift + alt + k, erased Derrived Data
pod deintegrate && pod clean and pod install
closed Xcode
rebooted mac
The interesting thing is that it seems like nothing affects Xcode state - neither pod updates, nor pod disintegration, they are always there with old versions.
How can I successfully make Xcode see new versions?
Maybe you could try to explicit state the version on the podfile?
something like:
pod 'SKPhotoBrowser', '~> 6.1.0'
pod 'SwiftDate', '~> 6.0.3'
and if the problem is solved then you can remove the explicit version.
Made a new project based off of swift 3.2. and used this pod file:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'PushNotifs' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for PushNotifs
pod 'Firebase/Core'
pod 'Firebase/Messaging'
end
Now i pushed this app to my iPhone 6S for a test. and sent a message. IT WORKED.
A few minutes later made a new project based off of swift 4.0 and used this podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Push 7' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Push 7
# Pods for PushNotifs
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'Firebase/Auth'
pod 'GRDB.swift', '2.10.0'
pod 'Alamofire'
pod 'DeckTransition', '~> 2.0'
pod 'Fabric', '~> 1.7.9'
pod 'Crashlytics', '~> 3.10.5'
pod 'SCLAlertView'
end
Later did a pod install and got the following repsponse:
Analyzing dependencies
Removing GoogleToolboxForMac
Downloading dependencies
Installing Alamofire (4.7.3)
Installing BoringSSL (10.0.6)
Installing Crashlytics (3.10.7)
Installing DeckTransition (2.1.0)
Installing Fabric (1.7.11)
Installing Firebase 5.8.1 (was 3.14.0)
Installing FirebaseAnalytics 5.1.4 (was 3.7.0 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing FirebaseAuth (5.0.4)
Installing FirebaseAuthInterop (1.0.0)
Installing FirebaseCore 5.1.3 (was 3.5.1 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing FirebaseDatabase (5.0.3)
Installing FirebaseFirestore (0.13.3)
Installing FirebaseInstanceID 3.2.1 (was 1.0.9 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing FirebaseMessaging 3.1.2 (was 1.2.2 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing GRDB.swift (2.10.0)
Installing GTMSessionFetcher (1.2.0)
Installing GoogleAppMeasurement (5.1.4)
Installing GoogleUtilities (5.3.0)
Using Protobuf (3.6.1)
Installing SCLAlertView (0.8)
Installing gRPC (1.14.0)
Installing gRPC-C++ (0.0.3)
Installing gRPC-Core (1.14.0)
Installing gRPC-ProtoRPC (1.14.0)
Installing gRPC-RxLibrary (1.14.0)
Installing leveldb-library (1.20)
Installing nanopb (0.3.8)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 11 dependencies from the Podfile and 27 total pods installed.
Now i'm assuming that i have firebase v5.8.1. Well. Now I can’t receive messages through FCM, message sent but not received on the device
I need help. Thank you
I have tried to install :
pod 'ReachabilitySwift', '~> 3'
into my Podfile, but I get this error:
[!] Unable to satisfy the following requirements:
ReachabilitySwift (~> 3) required by Podfile
None of your spec sources contain a spec satisfying the dependency: ReachabilitySwift (~> 3).
You have either:
* out-of-date source repos which you can update with pod repo update.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
Any ideas how can I install it , I also tried manually, but it didn't work too.
P.S I am using CocoaPods
after updating:
CocoaPods 1.1.0.rc.2 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.rc.2
Analyzing dependencies
Pre-downloading: SwiftyJSON from https://github.com/BaiduHiDeviOS/SwiftyJSON.git, branch swift3
Downloading dependencies
Installing ReachabilitySwift 3 (was 2.3.3)
Using SVProgressHUD (2.0.3)
Installing SwiftyJSON 2.3.2 (was 2.3.2)
Generating Pods project
Integrating client project
Pod installation complete! There are 3 dependencies from the Podfile and 3 total
pods installed.
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
Ivans-Air-2:popo IvanDosevDimitrov$
Just run sudo gem install cocoapods and then pod updateafter that.
Why would I be getting different NuGet restore build failures on the exact same changeset over 3 manually-triggered, consecutive builds? The fourth build was successful.
I double checked on NuGet's twitter feed and there was no report of any issues or downtime.
This is occurring on the following command:
nuget.exe restore MySolution.sln
FIRST BUILD:
Installing 'Microsoft.Data.Edm 5.6.2'.
Installing 'Microsoft.Data.Services.Client 5.6.2'.
Successfully installed 'Microsoft.Data.Edm 5.6.2'.
Successfully installed 'Microsoft.Data.Services.Client 5.6.2'.
Installing 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3'.
Successfully installed 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3'.
Installing 'Owin 1.0'.
Successfully installed 'Owin 1.0'.
Installing 'Microsoft.Data.OData 5.6.2'.
Successfully installed 'Microsoft.Data.OData 5.6.2'.
Installing 'System.Spatial 5.6.2'.
Successfully installed 'System.Spatial 5.6.2'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Core'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Owin'.
Unable to find version '3.0.1' of package 'Microsoft.Owin'.
Unable to find version '3.0.1' of package 'Microsoft.Owin.Host.SystemWeb'.
Unable to find version '6.0.8' of package 'Newtonsoft.Json'.
Unable to find version '4.3.0' of package 'WindowsAzure.Storage'.
SECOND BUILD:
Installing 'Owin 1.0'.
Successfully installed 'Owin 1.0'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Core'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Owin'.
Unable to find version '5.6.4' of package 'Microsoft.Data.Edm'.
Unable to find version '5.6.4' of package 'Microsoft.Data.OData'.
Unable to find version '5.6.4' of package 'Microsoft.Data.Services.Client'.
Unable to find version '3.0.1' of package 'Microsoft.Owin'.
Unable to find version '3.0.1' of package 'Microsoft.Owin.Host.SystemWeb'.
Unable to find version '3.1.0' of package 'Microsoft.WindowsAzure.ConfigurationManager'.
Unable to find version '6.0.8' of package 'Newtonsoft.Json'.
Unable to find version '5.6.4' of package 'System.Spatial'.
Unable to find version '4.3.0' of package 'WindowsAzure.Storage'.
THIRD BUILD:
Installing 'Newtonsoft.Json 6.0.8'.
Installing 'Microsoft.Data.Edm 5.6.4'.
Successfully installed 'Microsoft.Data.Edm 5.6.4'.
Installing 'Microsoft.Data.Services.Client 5.6.4'.
Successfully installed 'Microsoft.Data.Services.Client 5.6.4'.
Installing 'Microsoft.AspNet.WebApi.Owin 5.2.3'.
Installing 'Microsoft.AspNet.WebApi.Client 5.2.3'.
Successfully installed 'Microsoft.AspNet.WebApi.Owin 5.2.3'.
Successfully installed 'Microsoft.AspNet.WebApi.Client 5.2.3'.
Installing 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
Successfully installed 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
Installing 'Microsoft.AspNet.WebApi.Core 5.2.3'.
Successfully installed 'Microsoft.AspNet.WebApi.Core 5.2.3'.
Installing 'Owin 1.0'.
Successfully installed 'Owin 1.0'.
Installing 'System.Spatial 5.6.4'.
Installing 'Microsoft.WindowsAzure.ConfigurationManager 3.1.0'.
Installing 'WindowsAzure.Storage 4.3.0'.
Successfully installed 'Microsoft.WindowsAzure.ConfigurationManager 3.1.0'.
Successfully installed 'System.Spatial 5.6.4'.
Successfully installed 'WindowsAzure.Storage 4.3.0'.
Successfully installed 'Newtonsoft.Json 6.0.8'.
Unable to find version '5.6.4' of package 'Microsoft.Data.OData'.
Unable to find version '3.0.1' of package 'Microsoft.Owin'.
FOURTH BUILD:
Success!
The Host Build Controller on Visual Studio Online now performs NuGet implicitly. It does not have the same problem!