Cocoapods 错误 v0.9.0
Posted
技术标签:
【中文标题】Cocoapods 错误 v0.9.0【英文标题】:Cocoapods Error v0.9.0 【发布时间】:2018-07-05 11:23:32 【问题描述】:我正在尝试使用 cocoapods 来尝试运行 Firebase 入门项目。 运行 POD 时,我得到以下输出:
POD v0.9.0
用法:pod [命令]
命令:
create <app> Create a new app
remote <app> <repo> Create a app from a remote GitHub repo
rm <app> Delete an app
start <app> Start an app monitored by pm2
stop <app> Stop an app
restart <app> Restart an app that's already running
list List apps and status
startall Start all apps not already running
stopall Stop all apps
restartall Restart all running apps
prune Clean up dead files
hooks Update hooks after a pod upgrade
web [command] Start/stop/restart the web interface
help You are reading it right now
没有 INIT 命令,当我尝试启动 POD 时失败。
【问题讨论】:
【参考方案1】:看起来您没有安装 CocoaPods。这是我自己运行pod
时的输出:
$ pod
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ debug Start a debugging session
+ deintegrate Deintegrate CocoaPods from your project
+ dependencies Show project's dependency graph.
+ env Display pod environment
+ gen Generates Xcode workspaces from a podspec.
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ package Package a podspec into a static library.
+ plugins Show available CocoaPods plugins
+ repo Manage spec-repositories
+ search Search for pods
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ trunk Interact with the CocoaPods API (e.g. publishing new specs)
+ try Try a Pod!
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
【讨论】:
嗨。安装 RVM ,然后使用它安装 Ruby 并再次安装 cocoapods。现在执行 POD 时似乎给了我正确的输出【参考方案2】:已安装的 RVM 安装红宝石 跑:宝石更新--系统 宝石安装导轨--pre 运行 POD 现在得到 用法:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
命令:
+ cache Manipulate the CocoaPods cache
+ deintegrate Deintegrate CocoaPods from your project
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ plugins Show available CocoaPods plugins
+ repo Manage spec-repositories
+ search Search for pods
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ trunk Interact with the CocoaPods API (e.g. publishing new specs)
+ try Try a Pod!
+ update Update outdated project dependencies and create new Podfile.lock
选项:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
【讨论】:
以上是关于Cocoapods 错误 v0.9.0的主要内容,如果未能解决你的问题,请参考以下文章