24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/cint/project.rb', line 24
def add_missing_frameworks_to_target(target, frameworks)
fs = _fix_frameworks_paths(frameworks)
fs -= target.frameworks_build_phase.files.map { |f| f.file_ref.path }
added_frameworks = []
files = fs.map do |f|
file = @project.frameworks_group.files.find { |ff| ff.path == f}
if file.nil?
file = @project.frameworks_group.new_file(f) if file.nil?
added_frameworks << f
end
file
end
files.each do |f|
target.frameworks_build_phase.add_file_reference(f)
end
return added_frameworks
end
|