Method: Pod::Podfile::TargetDefinition#set_platform!

Defined in:
lib/cocoapods-core/podfile/target_definition.rb

#set_platform!(name, target = nil) ⇒ void

This method returns an undefined value.

Sets the platform of the target definition.

Raises:

  • When the target definition already has a platform set.

See Also:



672
673
674
675
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 672

def set_platform!(name, target = nil)
  raise StandardError, "The target `#{label}` already has a platform set." if get_hash_value('platform')
  set_platform(name, target)
end