iOS:使用终端搜索cocoapods

时间:2017-02-08 18:11:30

标签: ios objective-c swift cocoapods xcode8

你们中的任何人都知道如果是使用终端搜索cocoapods的方法。例如,如果我想搜索" CocoaLumberjack" ?

我非常感谢你的帮助。

3 个答案:

答案 0 :(得分:1)

实际上,有一个搜索存储库的命令。它是以下内容:

pod search QUERY

其中query是您要查找的pod的名称。它还有其他几个选项(标志)。有关更多信息,请查看以下链接:

https://guides.cocoapods.org/terminal/commands.html#pod_search

答案 1 :(得分:1)

你这样做:

pod search CocoaLumberjack

答案 2 :(得分:0)

有!我们怎么能找到?

pod --help

Usage:

    $ pod COMMAND

      CocoaPods, the Cocoa library package manager.

Commands:

    ...
    + search        Search for pods
    ...

所以我们可以运行:pod search cocoalumberjack

-> CocoaLumberjack (3.0.0)
   A fast & simple, yet powerful & flexible logging framework for Mac and iOS.
   pod 'CocoaLumberjack', '~> 3.0.0'
   - Homepage: https://github.com/CocoaLumberjack/CocoaLumberjack
   - Source:   https://github.com/CocoaLumberjack/CocoaLumberjack.git
   - Versions: 3.0.0, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.1.0-rc, 2.1.0-beta, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 2.0.0-rc2,
   2.0.0-rc, 2.0.0-beta4, 2.0.0-beta3, 2.0.0-beta2, 2.0.0-beta, 1.9.2, 1.9.1, 1.9.0, 1.8.1, 1.8.0, 1.7.0, 1.6.5.1,
   1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6, 1.3.3, 1.3.2, 1.3.1, 1.3, 1.2.3, 1.2.2, 1.2.1, 1.2, 1.1, 1.0 [master repo]
   - Subspecs:
     - CocoaLumberjack/Default (3.0.0)
     - CocoaLumberjack/Core (3.0.0)
     - CocoaLumberjack/Extensions (3.0.0)
     - CocoaLumberjack/CLI (3.0.0)
     - CocoaLumberjack/Swift (3.0.0)

-> CocoaLumberjack-RemoteAccess (0.1.0)
   remote access log files on iPhone
   pod 'CocoaLumberjack-RemoteAccess', '~> 0.1.0'
   - Homepage: https://github.com/tomcat2088/CocoaLumberjack-RemoteAccess
   - Source:   https://github.com/tomcat2088/CocoaLumberjack-RemoteAccess.git
   - Versions: 0.1.0 [master repo]
...