[ad_1]
So I am currently working on a codebase at work (Xcode project) that has various dependencies in place with a pod file that looks like this:
platform :ios, '11.0' # <!-- THIS IS CREATING THE INSTALLATION ISSUE
inhibit_all_warnings!
use_frameworks!
workspace 'CompanyCodebase'
def shared_pods
pod 'Alamofire', '~> 5.4.1'
pod 'AlamofireImage', '~> 4.1.0'
pod 'SwiftLint'
end
def app_pods
shared_pods
pod 'GoogleAnalytics', '~> 3.17.0'
end
target 'MyTargetToInstall' do
project 'CompanyCodebase.xcproject'
app_pods
stripe_pod
pod 'DependencyOne', '0.9.14'. # <!-- INSTALL THIS TO MyTargetToInstall
pod 'DependencyTwo', '0.9.14' # <!-- INSTALL THIS TO MyTargetToInstall
end
The task is I would need to install a dependency as shown under the method MyTargetToInstall
to that specific target (MyTargetToInstall), but the issue is that platform :ios, '11.0'
is the bottleneck upon attempting to install and I get this error:
[!] CocoaPods could not find compatible versions for pod "DependencyOne":
In Podfile:
DependencyOne (= 0.9.14)
Specs satisfying the `DependencyOne (= 0.9.14)` dependency were found, but they required a higher minimum deployment target.
The thing is we need that platform definition for our other pods that are currently installed. Upon commenting platform :ios, '11.0'
out, the installation is successful. So my question is, is there a way to only spot install these 2 dependencies to MyTargetToInstall
without having to comment out platform :ios, '11.0'
or is there a workaround to this?
[ad_2]