ios - Cocoapods 错误 v0.9.0
问题描述
我正在尝试使用 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 时它失败了。
解决方案
看起来你没有安装 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
推荐阅读
- windows - VirtualEnv 未在 Windows cmd 中显示
- java - 如何在 Spring Boot 中导入 xml 文件?
- android - 如何使用在 Android Studio 的 onResponse 方法中定义的变量的值
- laravel - 如何在布局中添加变量并在 Laravel 的所有页面上访问?
- excel - 复制除最后两列之外的所有列
- python - 错误:使用 keras 设置具有序列的数组元素
- php - 带有php echo的文本溢出div
- docker - 如何在 Windows 10 上拉取本地构建的 docker 映像?
- ruby-on-rails - 为什么我的 Docker PostgreSQL 容器不再运行?
- assembly - PSR[15] - LC-3 - 中断