Monday, September 10, 2018

How to install same pod in multiple target?

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/

No comments:

Post a Comment