Commit da570b7a authored by AliSoftware's avatar AliSoftware

[xcassets] Deintegration: only iterate over native targets

parent 8aa9dfd9
...@@ -24,7 +24,7 @@ GIT ...@@ -24,7 +24,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Xcodeproj.git remote: https://github.com/CocoaPods/Xcodeproj.git
revision: c42f8f2db7475210f4c4e28e6d2bb92859bb6766 revision: d390a868d855b9f1b6978ac1286cefd34631b732
branch: master branch: master
specs: specs:
xcodeproj (0.23.1) xcodeproj (0.23.1)
......
...@@ -131,7 +131,7 @@ module Pod ...@@ -131,7 +131,7 @@ module Pod
is_dirty = false is_dirty = false
TargetIntegrator.each_pods_resources(project) do |file_ref| TargetIntegrator.each_pods_resources(project) do |file_ref|
file_in_at_least_one_target = false file_in_at_least_one_target = false
project.targets.each do |user_target| project.native_targets.each do |user_target|
# Seems like user_target.resources_build_phase.include?(file_ref) does not work as expected here :( # Seems like user_target.resources_build_phase.include?(file_ref) does not work as expected here :(
file_is_in_target = user_target.resources_build_phase.files_references.any? { |f| f.path == file_ref.path } file_is_in_target = user_target.resources_build_phase.files_references.any? { |f| f.path == file_ref.path }
next unless file_is_in_target next unless file_is_in_target
......
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