Commit 255f06a8 authored by Samuel Giddins's avatar Samuel Giddins

[TargetIntegrator] Ensure migrating already-integrated targets to non-weak depedencies

parent 967dfb24
...@@ -135,16 +135,16 @@ module Pod ...@@ -135,16 +135,16 @@ module Pod
end end
frameworks = user_project.frameworks_group frameworks = user_project.frameworks_group
native_targets_to_embed_in.each do |native_target| native_targets.each do |native_target|
build_phase = native_target.frameworks_build_phase build_phase = native_target.frameworks_build_phase
product_ref = frameworks.files.find { |f| f.path == target.product_name } product_ref = frameworks.files.find { |f| f.path == target.product_name }
if product_ref if product_ref
build_file = build_phase.build_file(product_ref) build_file = build_phase.build_file(product_ref)
if build_file \ if build_file &&
&& build_file.settings.is_a?(Hash) \ build_file.settings.is_a?(Hash) &&
&& build_file.settings['ATTRIBUTES'].is_a?(Array) \ build_file.settings['ATTRIBUTES'].is_a?(Array) &&
&& build_file.settings['ATTRIBUTES'].include?('Weak') build_file.settings['ATTRIBUTES'].include?('Weak')
build_file.settings = nil build_file.settings = nil
requires_update = true requires_update = true
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