Class: FastlaneCore::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/xcov/project_extensions.rb

Instance Method Summary collapse

Instance Method Details

#targetsObject

Returns project targets



8
9
10
11
12
13
14
15
16
17
# File 'lib/xcov/project_extensions.rb', line 8

def targets
  project_path = get_project_path
  return [] if project_path.nil?

  proj = Xcodeproj::Project.open(project_path)

  proj.targets.map do |target|
   target.name
 end
end