cocoapods-pod-merge icon indicating copy to clipboard operation
cocoapods-pod-merge copied to clipboard

Support multiple level dependance

Open Chren opened this issue 5 years ago • 1 comments

Hi, we have pod structure as below:

ModuleA.podspec s.dependency 'AFNetworking'

MergeFile:

group 'Networking' has_dependencies! pod 'AFNetworking' pod 'CustomNetwork', :path => "../../../path" end

Podfile

target 'target' do pod 'Networking', :path => 'MergedPods/Networking' pod 'ModuleA' end

After run 'bundle exec pod install' I got two AFNetworking in pod project. One is under Development Pods, another is under Pods, how to solve it?

Chren avatar Dec 14 '19 07:12 Chren

Hello,

Thanks for reporting this. Unfortunately this is something the plugin cannot handle, since it'll not modify dependencies outside of the MergeFile.

One way to fix this in your case is to also try merging ModuleA into the Networking group:

group 'Networking' 
    has_dependencies! 
    pod 'AFNetworking' 
    pod 'CustomNetwork', :path => "../../../path"
    pod 'ModuleA' 
end

biocross avatar Dec 16 '19 05:12 biocross