def new_target(type, name, platform, deployment_target = nil, product_group = nil, language = nil)
      product_group ||= products_group
      ProjectHelper.new_target(self, type, name, platform, deployment_target, product_group, language)
    end
def new_target(type, name, platform, deployment_target = nil, product_group = nil, language = nil)
      product_group ||= products_group
      ProjectHelper.new_target(self, type, name, platform, deployment_target, product_group, language)
    end
Creates a new target and adds it to the project.

 The target is configured for the given platform and its file reference it
 is added to the {products_group}.

 The target is pre-populated with common build settings, and the
 appropriate Framework according to the platform is added to to its
 Frameworks phase.

 @param  [Symbol] type
         the type of target. Can be `:application`, `:framework`,
         `:dynamic_library` or `:static_library`.

 @param  [String] name
         the name of the target product.

 @param  [Symbol] platform
         the platform of the target. Can be `:ios` or `:osx`.

 @param  [String] deployment_target
         the deployment target for the platform.

 @param  [PBXGroup] product_group
         the product group, where to add to a file reference of the
         created target.

 @param  [Symbol] language
         the primary language of the target, can be `:objc` or `:swift`.

 @return [PBXNativeTarget] the target.