如何在不安装整个pod的情况下安装pod的子规范?

时间:2013-12-03 07:48:02

标签: ios cocoapods

我只想要一个库的一个子规格,例如,nimbus podspec如下:

pod search Nimbus

-> Nimbus (1.0.0)

An iOS framework whose growth is bounded by O(documentation).
- Homepage: http://docs.nimbuskit.info/index.html
- Source:   https://github.com/jverkoey/nimbus.git
- Versions: 1.0.0, 0.9.3, 0.9.2, 0.9.1, 0.9.0 [master repo]
- Sub specs:
    - Nimbus/Core (1.0.0)
    - Nimbus/Badge (1.0.0)
    - Nimbus/CSS (1.0.0)
    - Nimbus/AttributedLabel (1.0.0)
    - Nimbus/Interapp (1.0.0)
    - Nimbus/Launcher (1.0.0)
    - Nimbus/Models (1.0.0)
    - Nimbus/NetworkControllers (1.0.0)
    - Nimbus/NetworkImage (1.0.0)
    - Nimbus/Overview (1.0.0)
    - Nimbus/PagingScrollView (1.0.0)
    - Nimbus/Photos (1.0.0)
    - Nimbus/Operations (1.0.0)
    - Nimbus/Operations/JSON (1.0.0)
    - Nimbus/WebController (1.0.0)

我只想安装Nimbus / core,podfile包含什么?

1 个答案:

答案 0 :(得分:14)

只需在您的pod规范中使用以下行

即可
pod 'Nimbus/Core', '= 1.0.0'

完整的pod规范示例:

platform :iOS,'6.0'

pod 'Nimbus/Core', '= 1.0.0'