Can't update pods to the latest version

血红的双手。 提交于 2021-02-20 00:22:31

问题


I'm using react-native and I am trying to update the pods by using

pod update

But it updates nothing. However, when I use

pod outdated

It shows this

    Updating spec repo `master`
    $ /usr/bin/git -C /Users/IG/.cocoapods/repos/master fetch origin --progress
    remote: Counting objects: 15, done.        
    remote: Compressing objects: 100% (14/14), done.        
    remote: Total 15 (delta 11), reused 0 (delta 0), pack-reused 0        
    From https://github.com/CocoaPods/Specs
        1bb3a72da66..f6d4f6f0e14  master     -> origin/master
    $ /usr/bin/git -C /Users/IG/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
    master
    $ /usr/bin/git -C /Users/IG/.cocoapods/repos/master reset --hard origin/master
    HEAD is now at f6d4f6f0e14 [Add] ScanbotSDK 0.0.2
    Analyzing dependencies
    The color indicates what happens when you run `pod update`
    <green>      - Will be updated to the newest version
    <blue>   - Will be updated, but not to the newest version because of specified version in Podfile
    <red>        - Will not be updated because of specified version in Podfile

    The following pod updates are available:
    - Firebase 3.17.0 -> (unused) (latest version 4.13.0)
    - FirebaseAnalytics 3.9.0 -> 3.9.0 (latest version 4.2.0)
    - FirebaseCore 3.6.0 -> 3.6.0 (latest version 4.0.20)
    - FirebaseInstanceID 1.0.10 -> 1.0.10 (latest version 2.0.10)
    - FirebaseMessaging 1.2.3 -> 1.2.3 (latest version 2.2.0)
    The following pods are deprecated:
    - Google

But my podfile doesn't specify any version:

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
    pod 'Google/SignIn'
    pod 'Firebase/Core'
    pod 'Firebase/Messaging'
end

I have react-native 0.47.2 xcode 9.2 cocoapods 1.5.0


回答1:


pod update doesn't automatically update the master-repo

Can you try :

pod repo update

pod deintegrate

pod install

It should update everything as needed, and do a fresh and clean install.




回答2:


I Found the problem. I removed 'Google/SignIn' from the podfile and all pods were updated. Not sure how to replace that pod but I guess Google has another pod since they deprecated this one.




回答3:


Try Latest pod of GoogleSignIn :

pod GoogleSignIn

& for more reference open Google Developer Portal



来源:https://stackoverflow.com/questions/49883418/cant-update-pods-to-the-latest-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!