无法将pod更新到最新版本

时间:2018-04-17 16:43:24

标签: ios xcode react-native cocoapods

我正在使用react-native,我正在尝试使用

更新pod
pod update

但它没有任何更新。但是,当我使用

pod outdated

它显示了这个

    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

但是我的podfile没有指定任何版本:

platform :ios, '8.0'
use_frameworks!

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

我有反应原生0.47.2 xcode 9.2 cocoapods 1.5.0

3 个答案:

答案 0 :(得分:1)

pod update不会自动更新master-repo

你可以尝试:

pod repo update

pod deintegrate

pod install

它应该根据需要更新所有内容,并进行全新安装。

答案 1 :(得分:1)

我发现了问题。 我删除了Google / SignIn&#39;从podfile和所有pod都更新。 不知道如何更换那个吊舱,但我想谷歌有另一个吊舱,因为他们不赞成这个吊舱。

答案 2 :(得分:0)

尝试 GoogleSignIn 的最新窗格:

pod GoogleSignIn

&有关更多参考,请打开Google Developer Portal