If you want to use a podfile in more than one target, you can do like this. You can choose the download address when you pod this lib.
def testpods
pod 'YSDPush', :git => 'https://github.com/youshaoduo/YSDPush.git'
end
target 'One' do
testpods
end
target 'Two' do
testpods
end