iOS之多target开发Cocoapods配置
platform:ios,'10.0'
inhibit_all_warnings!
use_frameworks!
source 'https://cdn.cocoapods.org/'
公共pods
def common_pods
pod 'AFNetworking', '~> 3.2.1'
pod 'Masonry', '~> 1.1.0'
pod 'ReactiveObjC', '~> 3.1.1'
pod 'IQKeyboardManager', '~> 6.3.0'
pod 'FDFullscreenPopGesture', '~> 1.1'
pod 'SDWebImage', '~> 4.4.2'
pod 'MJRefresh', '~> 3.2.3'
pod 'YYModel', '~> 1.0.4'
pod 'MBProgressHUD', '~> 1.1.0'
pod 'YYCache','~> 1.0.4'
pod 'lottie-ios', '~> 2.5.3'
pod 'AMapLocation', '~> 2.6.1'
end
target数组 如果有新的target直接加入该数组
targetsArray = ['YLGoodCare', 'YLGoodCareTest']
targetsArray.each do |t|
target t do
common_pods
end
end
target 'YLGoodCareDev' do
common_pods
pod 'MLeaksFinder', '~> 1.0.0'
end
target 'YLGoodCareUnitTests' do
pod 'Kiwi'#单元测试
end