Cocospod how to ignore single pod when use pod update? - cocoapods

When we use pod update, cocospod will update all pod of podfile.Also we can use pod update frameworkname1 to update only frameworkname1.However, if i want to also dont update framework1,I have to use pod update framework2,framework3,framework4,...... Any way can do like pod update -ignore framework1 this?

Related

Is there a way to find the updated pod when we do pod update in post_install

when we run
pod update podname
Wanted to catch the pod/pods(or related targets) updated in post_install
Is this possible?

Google/CloudMessaging' and Firebase/Messaging' fail with erro duplicate symbol

I am using Firebase in my project as well as Google sing-in.
For that I am using pod library.
pod 'SVProgressHUD'
pod 'SDWebImage'
pod 'AlamofireObjectMapper', '~> 4.0'
pod 'Google/SignIn'
pod 'IQKeyboardManagerSwift'
pod 'FBSDKLoginKit'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Auth'
pod 'Google/CloudMessaging'
This are my pod which I am using in project.
Now I am remove pod 'Google/CloudMessaging' then app build successfully but GGLContext.sharedInstance().configureWithError(&configureError)
giving error like below
You have enabled the CloudMessaging service in Developer Console, but it appears as though your Podfile is missing the line: 'pod "Google/CloudMessaging" or you may need to run pod update in your project directory.
If I am adding pod "Google/CloudMessaging pod and then build project XCode fail with duplicate symbols.
How can I add two and also avoid this error.
It seems you cant use GCM and FCM at the same time as FCM is the new improved GCM and you're certainly going to run into those kind of errors. You can see that question addressed in this SO post

Unable to find a specification for `Google/SignIn`

I'm trying to follow this tutorial but i cant get cocoapods to work:
https://developers.google.com/identity/sign-in/ios/start-integrating
My pod file:
target 'GoogleSigninDemo' do
use_frameworks!
pod 'Google/SignIn'
end
I've only tried using cocoapods twice now and so far it has been pretty unpleasent. I have noticed that if i replace the pod 'Google/SignIn' with another pod it seems to work.
pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
for example.
Any thoughts?
There is no "/" in the pod name.
Try this instead :
pod 'GoogleSignIn', '~> 4.0'
Anyway, whenever you need to use CocoaPods, check out the CocoaPods page for the pod you are using : https://cocoapods.org/pods/GoogleSignIn

How to update all but one pod

Is it possible to leave one pod untouched during pod install and pod update?
pod update <POD> is not an option.
You actually can use pod update [NAMES...] to update specific pods. You can see this in pod update --help

updating and leaving some libs untouched

I have this Podfile
platform :ios
pod 'ShareKit'
pod'SVProgressHUD'
pod 'HockeySDK'
Now I want to add a new library, but leave the existing ones untouched. Is that possible without having to add the version number to the libraries, and how do I do it?
Thanks
Just modify the podfile with the existing libraries, along with the new library name
and execute pod install
For example adding AFNetworking
Update pod file as
platform :ios
pod 'ShareKit'
pod'SVProgressHUD'
pod 'HockeySDK'
pod 'AFNetworking', '0.9.1'
Then call
pod install
To install the changes you have made to your Podfile, or to bootstrap your installation for a project which doesn't keep the Pods folder under version control, use:
$ pod install
Pod install will not update your dependencies even if a new version is available, to update them you can use:
$ pod update

Resources