Skip to content

Commit 9373456

Browse files
authored
Revert "Revert "[Infra] Embed frameworks scripts/add_framework_script.rb""
1 parent 234d643 commit 9373456

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/add_framework_script.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ def add_ref(group, path, source_tree, phase)
6262
next unless project_target.name == target
6363
framework_set = project_target.frameworks_build_phase.files.to_set
6464
puts "The following frameworks are added to #{project_target}"
65+
embed_frameworks_phase = project_target.new_copy_files_build_phase("Embed Frameworks")
6566
framework_group.each do |framework|
6667
next if framework_set.size == framework_set.add(framework).size
6768
add_ref(project_framework_group,
6869
framework,
6970
source_tree,
70-
project_target.frameworks_build_phase)
71+
embed_frameworks_phase)
7172
end
7273
end
7374
end

0 commit comments

Comments
 (0)