Possible to connect single Pod to multiple targets with different min deployment target?
#9,932 opened on Jul 22, 2020
Repository metrics
- Stars
- (14,815 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
I couldn't find anything related to this question. That's why I am posting it here.
Recently, we did increase our app's min deployment target iOS 9.0 > 11.0. However, our app uses additional internal frameworks that are still pointing to iOS 9. Is it possible to share the same Pod with two targets that they do have different minimum deployment target?
So far I tried.
workspace 'ABC.xcworkspace'
platform :ios, '11.0'
use_frameworks! :linkage => :static
# ============= SCOPES ============= #
def firebase
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/DynamicLinks'
pod 'Firebase/InAppMessaging'
end
# ============= TARGETS ============ #
target 'ABC' do
firebase
end
target :Core do
platform :ios, '9.0'
firebase
end
Note: This is not the exact Podfile but rather a sample of it.
But this generates duplicate Targets under Pods.xcodeproj appending -iOS9.0 and -iOS11.0.
What is the right way achieving what I am looking for? If currently possible.