Commit 568b87fe authored by Marcel Jackwerth's avatar Marcel Jackwerth

[Validator] Improve file_accessor determination

parent 6eba8659
...@@ -208,8 +208,11 @@ module Pod ...@@ -208,8 +208,11 @@ module Pod
installer = Installer.new(sandbox, podfile) installer = Installer.new(sandbox, podfile)
installer.install! installer.install!
file_accessors = installer.aggregate_targets.first.pod_targets.map{ |target| target.file_accessors }.flatten file_accessors = installer.aggregate_targets.map do |target|
@file_accessor = file_accessors.find { |accessor| accessor.spec == spec } target.pod_targets.map(&:file_accessors)
end.flatten
@file_accessor = file_accessors.find { |accessor| accessor.spec.root.name == spec.root.name }
config.silent config.silent
end end
......
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