Closed dabing1022 closed 3 years ago
target 'Demo' do pod 'Masonry' end
plugin 'cocoapods-imy-bin' use_binaries! target 'Demo' do pod 'Masonry', :path => '~/ZZPods/zz-ios-open/Masonry' end
pod bin install后执行报错:
pod bin install
[!] There are multiple dependencies with different sources for `Masonry` in `Podfile`: - Masonry - Masonry (from `~/ZZPods/zz-ios-open/Masonry`)
Podfile中的 pod 'Masonry'得到的target_dependency此时是一个String类型(当后面有版本, :git, :podspec等时为Hash类型), 此时target_dependencies.delete target_dependency无法删除,导致两个库重复报错。
pod 'Masonry'
target_dependency
String
target_dependencies.delete target_dependency
Podfile
Podfile_local
pod bin install
后执行报错:Podfile中的
pod 'Masonry'
得到的target_dependency
此时是一个String
类型(当后面有版本, :git, :podspec等时为Hash类型), 此时target_dependencies.delete target_dependency
无法删除,导致两个库重复报错。