多个taget时候podFile的写法
2018-05-10 本文已影响0人
鹏飞说
我们在创建多个Taget的时候我们应该这样写podFile方法
source 'https://github.com/CocoaPods/Specs.git'
def common_pods
platform :ios, '8.0'
inhibit_all_warnings!
pod 'AFNetworking'
pod 'PureLayout'
pod 'SDWebImage', '~> 3.8'
pod 'SVProgressHUD', '~> 2.1'
pod 'JSONModel'
pod 'MJRefresh'
pod 'IQKeyboardManager'
pod 'HYBNetworking'
pod 'CYLTableViewPlaceHolder'
pod 'MWPhotoBrowser'
pod 'PPGetAddressBook'
pod 'SDCycleScrollView'
pod 'Masonry', '~> 1.0.2'
pod 'YYKit', '~> 1.0.9'
pod 'SocketRocket'
pod 'LLSegmentBar'
pod 'TXScrollLabelView'
# 主模块(必须)
pod 'ShareSDK3'
# Mob 公共库(必须) 如果同时集成SMSSDK iOS2.0:可看此注意事项:http://bbs.mob.com/thread-20051-1-1.html
pod 'MOBFoundation'
# UI模块(非必须,需要用到ShareSDK提供的分享菜单栏和分享编辑页面需要以下1行)
pod 'ShareSDK3/ShareSDKUI'
# 平台SDK模块(对照一下平台,需要的加上。如果只需要QQ、微信、新浪微博,只需要以下3行)
pod 'ShareSDK3/ShareSDKPlatforms/QQ'
pod 'ShareSDK3/ShareSDKPlatforms/SinaWeibo'
pod 'ShareSDK3/ShareSDKPlatforms/WeChat'
# 使用配置文件分享模块(非必需)
pod 'ShareSDK3/ShareSDKConfigurationFile'
# 扩展模块(在调用可以弹出我们UI分享方法的时候是必需的)
pod 'ShareSDK3/ShareSDKExtension'
# 极光推送
#pod 'JPush'
# Crash报告
#pod 'Fabric'
#pod 'Crashlytics', '~> 3.9'
# Bugly异常报告
pod 'Bugly'
# 内存泄漏警告
#pod 'MLeaksFinder'
# An in-app debugging and exploration tool for iOS
pod 'FLEX', '~> 2.0', :configurations => ['DEBUG', 'Flex']
end
target "HSRongyiBao" do
common_pods
end
target "HSRongyiBao Dev" do
common_pods
end
target "HSRongyiBao PreProduction" do
common_pods
end