Cocoapods: 请求加上 link_with 参数,使多个 Target 公用相同的依赖

Created on 27 Apr 2016  ·  2Comments  ·  Source: CocoaPods/CocoaPods

ℹ Please fill out this template when filing an issue.
All lines beginning with a quotation mark (>),
instruct you with what info we expect.
Please remove this paragraph.

Report

What did you do?

请求加上 link_with 这个参数, 在之前的 Cocoapods 使用文档中他的作用是能够使多个 Target 公用相同的依赖包

但是他在最近的版本被移除了,
因为项目的特殊性在我现在的项目中 会有很多个 Target 现在我的配置是这样的

随着开发的进行 Target 会越来越多.

请帮助我

source 'https://git.coding.net/hging/Specs.git'
#link_with 'StoresBroker','FangYiMai','YiMaiFang','YunKe-Store','WuDuoDuo-Store'
platform :ios, '7.0'
target 'StoresBroker' do
    pod 'IQKeyboardManager'
    pod 'SDWebImage'
    pod 'MJExtension'
    pod 'ReactiveCocoa'
    pod 'Masonry'
    pod 'MBProgressHUD'
    pod 'UMengAnalytics-NO-IDFA'
    pod 'BaiduMapKit'
    pod 'Bugtags'
    pod 'JPush'
    pod 'GTMNSStringHTMLAdditions'
    pod 'AFNetworking'
    pod 'MJRefresh'
end

target 'FangYiMai' do
    pod 'IQKeyboardManager'
    pod 'SDWebImage'
    pod 'MJExtension'
    pod 'ReactiveCocoa'
    pod 'Masonry'
    pod 'MBProgressHUD'
    pod 'UMengAnalytics-NO-IDFA'
    pod 'BaiduMapKit'
    pod 'Bugtags'
    pod 'JPush'
    pod 'GTMNSStringHTMLAdditions'
    pod 'AFNetworking'
    pod 'MJRefresh'
end
target 'YiMaiFang' do
    pod 'IQKeyboardManager'
    pod 'SDWebImage'
    pod 'MJExtension'
    pod 'ReactiveCocoa'
    pod 'Masonry'
    pod 'MBProgressHUD'
    pod 'UMengAnalytics-NO-IDFA'
    pod 'BaiduMapKit'
    pod 'Bugtags'
    pod 'JPush'
    pod 'GTMNSStringHTMLAdditions'
    pod 'AFNetworking'
    pod 'MJRefresh'
end
target 'YunKe-Store' do
    pod 'IQKeyboardManager'
    pod 'SDWebImage'
    pod 'MJExtension'
    pod 'ReactiveCocoa'
    pod 'Masonry'
    pod 'MBProgressHUD'
    pod 'UMengAnalytics-NO-IDFA'
    pod 'BaiduMapKit'
    pod 'Bugtags'
    pod 'JPush'
    pod 'GTMNSStringHTMLAdditions'
    pod 'AFNetworking'
    pod 'MJRefresh'
end
target 'WuDuoDuo-Store' do
    pod 'IQKeyboardManager'
    pod 'SDWebImage'
    pod 'MJExtension'
    pod 'ReactiveCocoa'
    pod 'Masonry'
    pod 'MBProgressHUD'
    pod 'UMengAnalytics-NO-IDFA'
    pod 'BaiduMapKit'
    pod 'Bugtags'
    pod 'JPush'
    pod 'GTMNSStringHTMLAdditions'
    pod 'AFNetworking'
    pod 'MJRefresh'
end

Most helpful comment

Translation of the _What did you do?_:

I am requesting to add the link_with parameter, it was for sharing the same dependency in CocoaPods before.

But, it gets removed from the recent version. Because the uniqueness of my current project, it has a lot of targets to maintain. At least for now.

As the development goes further, a lot more targets will be added.

Please assist me

All 2 comments

Translation of the _What did you do?_:

I am requesting to add the link_with parameter, it was for sharing the same dependency in CocoaPods before.

But, it gets removed from the recent version. Because the uniqueness of my current project, it has a lot of targets to maintain. At least for now.

As the development goes further, a lot more targets will be added.

Please assist me

This is what abstract targets are for. In the future, usage questions such as this should be asked on a more appropriate forum like stack overflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marzapower picture marzapower  ·  3Comments

sonu5 picture sonu5  ·  3Comments

Curtis-Halbrook picture Curtis-Halbrook  ·  3Comments

Mingmingmew picture Mingmingmew  ·  3Comments

intelliot picture intelliot  ·  3Comments