我只想要一个库的一个子规格,例如,nimbus podspec如下:
pod搜索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包含什么?
解决方法
只需在您的pod规范中使用以下行
pod 'Nimbus/Core','= 1.0.0'
完整的pod规范示例:
platform :iOS,'6.0' pod 'Nimbus/Core','= 1.0.0'