class Xcodeproj::Project
Public Instance Methods
new_group_with_uuid(name, uuid, path = nil, source_tree = :group)
click to toggle source
Creates a new group with given UUID.
@param [String] uuid UUID of the object.
# File lib/cocoaseeds/xcodehelper.rb, line 22 def new_group_with_uuid(name, uuid, path = nil, source_tree = :group) main_group.new_group_with_uuid(name, uuid, path, source_tree) end
new_with_uuid(klass, uuid)
click to toggle source
Creates a new object with given UUID.
@param [String] uuid UUID of the object.
# File lib/cocoaseeds/xcodehelper.rb, line 9 def new_with_uuid(klass, uuid) if klass.is_a?(String) klass = Object.const_get(klass) end object = klass.new(self, uuid) object.initialize_defaults object end
target_named(name)
click to toggle source
@param [String] name The name of target. @return the target with given name
# File lib/cocoaseeds/xcodehelper.rb, line 29 def target_named(name) self.targets.each do |target| if target.name == name.to_s return target end end nil end