Class: EmergeCLI::Commands::OrderFiles::ValidateXcodeProject

Inherits:
GlobalOptions
  • Object
show all
Defined in:
lib/commands/order_files/validate_xcode_project.rb

Constant Summary collapse

'LD_GENERATE_MAP_FILE'.freeze
'LD_MAP_FILE_PATH'.freeze
PATH_TO_LINKMAP =
'$(TARGET_TEMP_DIR)/$(PRODUCT_NAME)-LinkMap-$(CURRENT_VARIANT)-$(CURRENT_ARCH).txt'.freeze

Instance Method Summary collapse

Methods inherited from GlobalOptions

#before

Instance Method Details

#call(**options) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/commands/order_files/validate_xcode_project.rb', line 20

def call(**options)
  @options = options
  before(options)

  raise 'Path must be an xcodeproject' unless @options[:path].end_with?('.xcodeproj')
  raise 'Path does not exist' unless File.exist?(@options[:path])

  @options[:build_configuration] ||= 'Release'

  Sync do
    project = Xcodeproj::Project.open(@options[:path])

    validate_xcproj(project)
  end
end