Method: Spaceship::Portal::App.create!

Defined in:
spaceship/lib/spaceship/portal/app.rb

.create!(bundle_id: nil, name: nil, mac: false, enable_services: {}) ⇒ App

Creates a new App ID on the Apple Dev Portal

if bundle_id ends with ‘*’ then it is a wildcard id otherwise, it is an explicit id

Parameters:

  • bundle_id (String) (defaults to: nil)

    the bundle id (app_identifier) of the app associated with this provisioning profile

  • name (String) (defaults to: nil)

    the name of the App

  • mac (Bool) (defaults to: false)

    is this a Mac app?

Returns:

  • (App)

    The app you just created


95
96
97
98
99
100
101
102
103
104
# File 'spaceship/lib/spaceship/portal/app.rb', line 95

def create!(bundle_id: nil, name: nil, mac: false, enable_services: {})
  if bundle_id.end_with?('*')
    type = :wildcard
  else
    type = :explicit
  end

  new_app = client.create_app!(type, name, bundle_id, mac: mac, enable_services: enable_services)
  self.new(new_app)
end