Solution is simple, and below is possible because pod file is just a ruby file.
platform :ios, '9.0'
use_frameworks!
# My other pods
def common_pods
pod 'Pod1', '0.5.0'
pod 'Pod2', '2.0.0-rc.1'
end
target 'MyTarget1' do
common_pods
end
target 'MyTarget2' do
common_pods
end
references:
https://www.natashatherobot.com/cocoapods-installing-same-pod-multiple-targets/
platform :ios, '9.0'
use_frameworks!
# My other pods
def common_pods
pod 'Pod1', '0.5.0'
pod 'Pod2', '2.0.0-rc.1'
end
target 'MyTarget1' do
common_pods
end
target 'MyTarget2' do
common_pods
end
references:
https://www.natashatherobot.com/cocoapods-installing-same-pod-multiple-targets/
No comments:
Post a Comment