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


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

阅读 2.8k
1 个回答

印象中 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
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题