Commit 99424503 authored by AliSoftware's avatar AliSoftware

[xcassets] Fix nil crash

parent 0aefe207
...@@ -149,8 +149,8 @@ module Pod ...@@ -149,8 +149,8 @@ module Pod
# Compute the list of file_refs form the Resources/ group that are # Compute the list of file_refs form the Resources/ group that are
# also in the native_targets Resources Build Phase # also in the native_targets Resources Build Phase
copied_resources_files = native_targets.map(&:resources_build_phase).flat_map(&:files_references) copied_resources_files = native_targets.map(&:resources_build_phase).flat_map(&:files_references)
copied_resources_paths = copied_resources_files.map(&:path).uniq copied_resources_paths = copied_resources_files ? copied_resources_files.map(&:path).uniq : []
resources_files = resources_group.groups.flat_map(&:files) resources_files = resources_group.groups ? resources_group.groups.flat_map(&:files) : []
refs_to_remove = resources_files.select { |ref| copied_resources_paths.include?(ref.path) } refs_to_remove = resources_files.select { |ref| copied_resources_paths.include?(ref.path) }
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