Cocoapods.app 删掉并执行命令行升级遇到的问题

2016/7/5 posted in  Cocoapods

目前cocoapods集成的app的pod版本是1.0.0,而目前开发中的版本是1.0.1,今天手贱去安装了官网的app,然后弹出提示本地已经存在pod库,是否执行覆盖,手贱点了是,结果发现版本降级了,然后删掉app重新安装一直提示:

Unable to locate the CocoaPods.app application bundle. Please ensure the application is available and launch it at least once

解决办法是:执行

sudo gem install -n /usr/local/bin cocoapods