首页 > 解决方案 > 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 时它失败了。

标签: iosxcodefirebasecocoapods

解决方案


看起来你没有安装 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

推荐阅读