首页 > CocoaPods 1.0.1版本增加的新写法?

CocoaPods 1.0.1版本增加的新写法?

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"

pod "SSKeychain"

#下面这两句话是什么意思? 以前的CocoaPods并没有这两句话
target :<#TargetName#>Tests, :exclusive => true do
  # pod 'Kiwi'
end


问题已经写在上面啦,先谢谢小伙伴们的回答!谢谢!


印象中 CocoaPods 早就推荐这样子写了,感觉也没什么好研究的,反正这样子就能很好的区分 target 了,比如项目名称叫 Zootopia 就这样子写

source 'https://github.com/CocoaPods/Specs.git'
inhibit_all_warnings!
platform:ios,'8.0'

target 'Zootopia' do
  pod 'UITableView+FDTemplateLayoutCell'
  pod 'Masonry'
  pod 'DateTools'
  pod 'SDWebImage'
  pod 'Reveal-iOS-SDK', :configurations => ['Debug']
end
【热门文章】
【热门文章】