Class: Xcodeproj::Project::Object::XCVersionGroup

Inherits:
PBXGroup show all
Defined in:
lib/xcodeproj/project/object/group.rb

Overview

A group that contains multiple files references to the different versions of a resource.

Used to contain the different versions of a ‘xcdatamodel`.

Instance Attribute Summary

Attributes inherited from AbstractObject

#isa, #project, #uuid

Attributes collapse

Methods inherited from PBXGroup

#<<, #[], #ascii_plist_annotation, #build_files, #children, #clear, #comments, #display_name, #empty?, #files, #find_file_by_path, #find_subpath, #groups, #hierarchy_path, #indent_width, #move, #name, #new_bundle, #new_group, #new_product_ref_for_target, #new_reference, #new_variant_group, #parent, #parents, #path, #real_path, #recursive_children, #recursive_children_groups, #remove_from_project, #set_path, #set_source_tree, #sort, #sort_by_type, #sort_recursively_by_type, #source_tree, #tab_width, #uses_tabs, #version_groups, #wraps_lines

Methods inherited from AbstractObject

#<=>, #==, #ascii_plist_annotation, #display_name, #inspect, isa, #nested_object_for_hash, #pretty_print, #remove_from_project, #sort, #sort_recursively, #to_ascii_plist, #to_hash

Instance Method Details

#current_versionPBXFileReference

Returns the reference to the current version.

Returns:



497
# File 'lib/xcodeproj/project/object/group.rb', line 497

has_one :current_version, PBXFileReference

#version_group_typeString

Returns the type of the versioned resource.

Returns:

  • (String)

    the type of the versioned resource.



501
# File 'lib/xcodeproj/project/object/group.rb', line 501

attribute :version_group_type, String, 'wrapper.xcdatamodel'