Podfile

#可以参考的链接: https://www.jianshu.com/p/8a0fd6150159

# 默认的依赖库来源地址
source 'https://github.com/CocoaPods/Specs.git'

# 执行的平台和版本

platform :ios ,'9.0'

#禁止警告
inhibit_all_warnings!

#使用framework
use_frameworks!

#我们可以通过def命令声明一个pod 集合。类似于abstract_target 的作用,使用时def后面的名字要有share前缀。
def share_CustomPods
  pod 'ReactiveCocoa', '2.5'
end

target :NetWork do
  share_CustomPods
  pod 'YYWebImage', '1.0.5'
end

#######################################
#指定Build Configurations(编译配置)。默认情况下,依赖项会被加在所有target的build configration中,为了调试可以指定在特定的build configration中生效。
#pod 'FHHFPSIndicator', :configrations => ['Debug', 'Beta']
#pod 'FHHFPSIndicator', :configrations => Debug

#指定下载的source
#pod 'SDWebImage', '4.4.2', :source => 'https://github.com/rs/SDWebImage.git'

#只安装某个依赖库的特定子模板
#pod 'QueryKit', :subspecs => ['Attribute', 'QuerySet']

 

posted @ 2018-10-25 11:21  jisa  阅读(227)  评论(0编辑  收藏  举报