Class: EmergeCLI::Commands::OrderFiles::ValidateXcodeProject
- Inherits:
-
GlobalOptions
- Object
- Dry::CLI::Command
- GlobalOptions
- EmergeCLI::Commands::OrderFiles::ValidateXcodeProject
- Defined in:
- lib/commands/order_files/validate_xcode_project.rb
Constant Summary collapse
- LINK_MAPS_CONFIG =
Constants
'LD_GENERATE_MAP_FILE'.freeze
- LINK_MAPS_PATH =
'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
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 = before() 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 |