43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/cocoapods-lzclear/command/lzclear.rb', line 43
def get_target(path)
targets = Array.new
project = Xcodeproj::Project.open(path)
target = project.targets[0]
if target != nil
target.build_phases.each do |phase|
if phase.instance_of? Xcodeproj::Project::Object::PBXShellScriptBuildPhase
if phase.name == '[CP] Copy Pods Resources'
files = phase.output_paths
if files != nil
files.clear
Pod::UI.puts 'Clean Output Files!'
end
paths = phase.output_file_list_paths
if paths != nil
paths.clear
Pod::UI.puts 'Clean Output File Lists!'
end
end
end
end
end
project.save
end
|