Commit 28ca8f54 authored by Jeremy Slater's avatar Jeremy Slater

Remove nil specs and pods from installer rep maps

parent 3868eba8
......@@ -60,7 +60,8 @@ module Pod
def specs_by_lib
result = {}
installer.libraries.each do |lib|
result[installer.library_rep(lib)] = [lib.spec]
next if lib.spec == nil
result[installer.library_rep(lib)] = lib.spec
end
result
end
......@@ -70,7 +71,7 @@ module Pod
#
def pods_by_lib
result = {}
installer.libraries.each do |lib|
installer.targets.map(&:libraries).flatten.each do |lib|
pod_names = [lib.spec.root.name]
pod_reps = pods.select { |rep| pod_names.include?(rep.name) }
result[lib.target_definition] = pod_reps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment