Method: Xcodeproj::Project#new_target
- Defined in:
- lib/xcodeproj/project.rb
#new_target(type, name, platform, deployment_target = nil, product_group = nil, language = nil, product_basename = nil) ⇒ PBXNativeTarget
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.
715 716 717 718 719 |
# File 'lib/xcodeproj/project.rb', line 715 def new_target(type, name, platform, deployment_target = nil, product_group = nil, language = nil, product_basename = nil) product_group ||= products_group product_basename ||= name ProjectHelper.new_target(self, type, name, platform, deployment_target, product_group, language, product_basename) end |