lib/cocoapods-bb-bin/native/resolver.rb in cocoapods-bb-bin-0.2.7.3 vs lib/cocoapods-bb-bin/native/resolver.rb in cocoapods-bb-bin-0.2.7.4
- old
+ new
@@ -94,10 +94,12 @@
old_resolver_specs_by_target = instance_method(:resolver_specs_by_target)
define_method(:resolver_specs_by_target) do
specs_by_target = old_resolver_specs_by_target.bind(self).call
sources_manager = Config.instance.sources_manager
+ binary_source = sources_manager.binary_source
+ code_source = sources_manager.code_source
use_source_pods = podfile.use_source_pods
missing_binary_specs = []
specs_by_target.each do |target, rspecs|
# use_binaries 并且 use_source_pods 不包含 本地可过滤
@@ -121,14 +123,13 @@
# next rspec
# end
# 采用二进制依赖并且不为开发组件
use_binary = use_binary_rspecs.include?(rspec)
- source = use_binary ? sources_manager.binary_source : sources_manager.code_source
-
+ source = use_binary ? binary_source : code_source
spec_version = rspec.spec.version
- # UI.message 'cocoapods-bb-bin 插件'
- # UI.message "- 开始处理 #{rspec.spec.name} #{spec_version} 组件."
+ # UI.puts 'cocoapods-bb-bin 插件'
+ # UI.puts "- 开始处理 #{rspec.spec.name} #{spec_version} 组件."
begin
# 从新 source 中获取 spec,在bin archive中会异常,因为找不到
specification = source.specification(rspec.root.name, spec_version)
UI.message "#{rspec.root.name} #{spec_version} \r\n specification =#{specification} "