Skip to content

Commit

Permalink
Merge pull request #1576 from firebase/nc/phase
Browse files Browse the repository at this point in the history
[Infra] Embed frameworks `scripts/add_framework_script.rb`
  • Loading branch information
ncooke3 authored Apr 25, 2024
2 parents f732972 + f895df6 commit 8173fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/add_framework_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ def add_ref(group, path, source_tree, phase)
next unless project_target.name == target
framework_set = project_target.frameworks_build_phase.files.to_set
puts "The following frameworks are added to #{project_target}"
embed_frameworks_phase = project_target.new_copy_files_build_phase("Embed Frameworks")
framework_group.each do |framework|
next if framework_set.size == framework_set.add(framework).size
add_ref(project_framework_group,
framework,
source_tree,
project_target.frameworks_build_phase)
embed_frameworks_phase)
end
end
end
Expand Down

0 comments on commit 8173fd2

Please sign in to comment.