lib/xcres/command/project_command.rb
def target
    @target ||= if target_name != nil
      target = native_targets.find { |t| t.name == target_name }
      if target.nil?
        raise ArgumentError.new "Unknown target '#{target_name}'. "
      end
      target
    else
      if application_targets.count == 1
        application_targets.first
      else
        raise ArgumentError.new 'Multiple application target in project. ' \
          'Please select one by specifying the option `--target TARGET`.'
      end
    end
  end
# Find the application target to use
#
# @return [PBXNativeTarget]
#
Find the application target to use
Find the application target to use
def target
    @target ||= if target_name != nil
      target = native_targets.find { |t| t.name == target_name }
      if target.nil?
        raise ArgumentError.new "Unknown target '#{target_name}'. "
      end
      target
    else
      if application_targets.count == 1
        application_targets.first
      else
        raise ArgumentError.new 'Multiple application target in project. ' \
          'Please select one by specifying the option `--target TARGET`.'
      end
    end
  end
def target @target ||= if target_name != nil target = native_targets . find { | t | t . name == target_name } if target . nil? raise ArgumentError . new "Unknown target '#{target_name}'. " end target else if application_targets . count == 1 application_targets . first else raise ArgumentError . new 'Multiple application target in project. ' 'Please select one by specifying the option `--target TARGET`.' end end end
Find the application target to use
Find the application target to use
None
PBXNativeTarget