Can't specify version constraints in combination with `project_name` parameter
Closed this issue · 3 comments
I'm trying to use generate_multiple_pod_projects
with incremental_installation
, but it seems that when specifying a specific project name for a pod, it's not allowed to still specify a version constraint.
Contrived Podfile
example;
install! 'cocoapods',
generate_multiple_pod_projects: true,
incremental_installation: true
target 'Example' do
pod 'FBSDKCoreKit', '~> 5.0.0', project_name: 'FacebookSDK'
pod 'FBSDKLoginKit', '~> 5.0.0', project_name: 'FacebookSDK'
pod 'FBSDKShareKit', '~> 5.0.0', project_name: 'FacebookSDK'
end
Would result in:
$ pod install
[!] A dependency with an external source may not specify version requirements (FBSDKCoreKit)
Is this the intended behavior, or is this a bug?
I'm using CocoaPods v1.7.5.
Works for me:
use_frameworks!
platform :ios, '12.0'
install! 'cocoapods',
generate_multiple_pod_projects: true,
incremental_installation: true
target 'SampleApp' do
pod 'FBSDKCoreKit', '~> 5.0.0', project_name: 'FacebookSDK'
pod 'FBSDKLoginKit', '~> 5.0.0', project_name: 'FacebookSDK'
pod 'FBSDKShareKit', '~> 5.0.0', project_name: 'FacebookSDK'
end
Seems like a user error. Going to preemptively close but @koenpunt I will reopen it if we identify a bug.
Can you please your full Podfile
or a sample app with a minimal Podfile
that demonstrates the problem? Look in your Podfile
for all pod
declarations of FBSDKCoreKit
.
Your example doesn't work with CocoaPods v1.7.5. So I'd appreciate it you reopen this issue.
Oh my bad, generate_multiple_pod_projects
is supported by 1.7.5, but project_name
was only introduced in 1.8.0.