Skip to content

Commit

Permalink
Update add_framework_script.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Apr 29, 2024
1 parent 0dd6c98 commit cae7b40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/add_framework_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ def add_ref(group, path, source_tree, phase_list)
ref.name = "#{File.basename(path)}"
ref.source_tree = source_tree
phase_list.each do |phase|
puts phase
build_file = phase.add_file_reference(ref)
# In Xcode 15+, the following settings should be applied when embedded
# In Xcode 15+, the following settings should be applied when embedding
# static frameworks. This will will enable Xcode to strip out the
# framework's static archive and headers, so that only the framework's
# resources remain.
if phase.isa == 'PBXCopyFilesBuildPhase' && phase.name == "Embed Frameworks"
build_file.settings = { 'ATTRIBUTES' => ['CodeSignOnCopy', 'RemoveHeadersOnCopy'] }
puts build_file
end
end
puts ref
Expand Down

0 comments on commit cae7b40

Please sign in to comment.