def create_target(name,type=:native)

      target = @registry.add_object Target.send(type)
      @project.properties['targets'] << target.identifier

      target.name = name

      build_configuration_list = @registry.add_object(ConfigurationList.configuration_list)
      target.build_configuration_list = build_configuration_list.identifier

      target.project = self

      yield target if block_given?

      target.save!
    end
def create_target(name,type=:native)

      target = @registry.add_object Target.send(type)
      @project.properties['targets'] << target.identifier

      target.name = name

      build_configuration_list = @registry.add_object(ConfigurationList.configuration_list)
      target.build_configuration_list = build_configuration_list.identifier

      target.project = self

      yield target if block_given?

      target.save!
    end
Creates a new target within the Xcode project. This will by default not
 generate all the additional build phases, configurations, and files
 that create a project.

 Available targts:

 * native
 * aggregate

 @param [String] name the name to provide to the target. This will also
   be the value that other defaults will be based on.
 @param [String,Symbol] type the type of build target to create.

 @return [Target] the target created.