ios - CocoaPods 1.0.1版本增加的新写法?

查看:114
本文介绍了ios - 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

这篇关于ios - CocoaPods 1.0.1版本增加的新写法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆