The version of CocoaPods used to generate the lock

2020-08-10 19:41发布

on $pod install it gives warning & fails

The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2)

What is it trying to say ?

macOs : 10.11.6 osx el capitan

my pod version is : 1.5.3

What does"current executable" (1.5.2) means ?

and

how to update it ?

3条回答
贼婆χ
2楼-- · 2020-08-10 19:53
$ [sudo] gem install cocoapods

you can update with this command

查看更多
Rolldiameter
3楼-- · 2020-08-10 20:10

2 solution

  1. deleted ios/podfile.lock and again do $pod install

OR

  1. OS UPDATE

    2.1 updated mac to high sierra or higher

    2.2 update xcode

    2.3 then update pod $sudo gem install cocoapods

    2.4 then $cd ios

    2.5 then $pod install

    2.6 $react-native start-ios

查看更多
放荡不羁爱自由
4楼-- · 2020-08-10 20:14

The error you are getting is due to your podfile.lock being built with an older version of Cocoapods. All you need to do is to delete your podfile.lock file and run pod install. This will create a new podfile.lock, with your current dependencies. Note that it should not take too long because your files should already be downloaded, they just need to be linked in said file.

查看更多
登录 后发表回答