Xcode does not pick up pod updates - swift

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.

Related

Upgraded to Flutter 3.7. M1 mac - have Pod Install Issue

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

GDTCCTUploadOperation.m:36:9: 'GoogleUtilities/GULURLSessionDataResponse.h' file not found

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.

swift Firestore 'absl/numeric/int128_have_intrinsic.inc' file not found

I just recently installed an extension to Firebase called Trigger Email which uses a Cloud Firestore Collection. I was trying to Firestore to my iOS project to use it, and got the following error:
'absl/numeric/int128_have_intrinsic.inc' file not found
Error in Xcode
Here are the contents of my podfile as well:
platform :ios, '10.0'
target 'FRC Lookout' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for FRC Lookout
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Google'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift'
pod 'MMDrawerController', '~> 0.5.7'
pod 'SwiftyJSON', '~> 4.0'
pod 'Alamofire'
pod 'SVProgressHUD'
pod 'SpreadsheetView'
pod 'CollapsibleTableSectionViewController', '~> 2.0.1'
pod 'JTAppleCalendar', '~> 7.0'
pod 'PageControls'
pod 'SwiftKeychainWrapper'
end
It also looks like the file does exist, but either the wrong path or something.
Any help would be much appreciated.
I got it to work finally after doing a
pod deintegrate
then redoing my
pod install
So I have the same issue as you are having. Well different Pods of course. Did some research...
I've notice when updating or installing Pods, there was a message that says there is an update for CocoaPods. (Just now it's 1.8.4)
So I ran the command > gem install cocoapods
after everything was updated, my project can compile!
I hope this can work for ya and same with everyone else...
For me the other answer did not work. There's also another piece to the puzzle as with the Version 6.13.0 - November 14, 2019 release we see this note
Removed Firestore's dependency on the Protobuf CocoaPod. If you're
manually tracking dependencies, you may be able to remove it from your
build (note, however, that other Firebase components may still require
it).
Added a dependency on the abseil CocoaPod. If you're manually tracking
dependencies, you need to add it to your build.
So even after updating etc, I had the same error as the OP. To correct that, I removed CocoaPods from my project by quitting XCode and then using the cocoapods app. File->Remove Cocoapods from a project.
I then dropped into terminal an updated cocoapods manually
sudo gem install cocoapods
and then navigated to the project folder and then
pod install
to reinstall updated pods in the project. Then when running the project the OP's error was resolved but I was left with
Framework not found Protobuf
so there was some reference to protobuf hanging around. In the project I went to
Target->Build Settings
and using the find field, search for Protobuf which should find it in the Other Linker Flags.
In the Other Linker Flags option, you may see a highlighted section in the middle of that line. Double click to open those frameworks in a popup window and scroll down the list until you find
-framework
"protobuf"
Select those two lines, hit the minus sign at the bottom of that popup window to delete that link, clean and rebuild.
That worked for me.
Deleted the pod files from the project and all files related to pods. Then installed once more in the same project folder and compiled. This worked for me. Used pods with its version number
Ex:
pod 'Firebase/Core', '6.1.0'
pod 'Firebase/Auth', '6.1.0'
pod 'Firebase/Firestore', '6.1.0'
pod 'Firebase/Storage', '6.1.0'
pod 'Firebase/Functions', '6.1.0'
The way to fix this error is to go into your podfile and remove firebase firestore. Then check that you have completed setting up your database on the firebase website. After removing firebase firestore run pod install. This will remove Firebase Firestore. Then go back in to your podfile and re-add Firebase Firestore. This worked for me!
This is caused by a cocoapods environment bug.
To fix it, completely uninstall and reinstall cocoapods.
1)
gem uninstall cocoapods
gem uninstall cocoapods-deintegrate
gem uninstall cocoapods-downloader
2)
sudo gem install cocoapods
3)
pod install
As some others have mentioned the correct answer is to use an updated version of cocoapods.
To check the version of cocoapods use pod --version.
If you see 1.5.0 you need to be on a higher version such as 1.8.4.
sudo gem install cocoapods -v 1.8.4
If after installation you are still not seeing an updated version when you do pod --version then you could be running the wrong pod file.
You'd need to correct that in your ~/.bash_profile.
You can type pod env to see more info about the pod file.
The executable pod that I use is in ~/.rbenv/versions/2.4.1/bin/pod.
Side note. If you have openssl errors you can use one of the following commands.
Use version 1.0.0 (most likely will need this)
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Upgrade to the latest
brew uninstall --ignore-dependencies openssl
brew install openssl

FCM works with Firebase v3.4.1 but not with v5.8.1

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

Any ideas how to install 'ReachabilitySwift' for swift 3?

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.