Module: SimCtl::Command::Privacy

Included in:
SimCtl::Command
Defined in:
lib/simctl/command/privacy.rb

Instance Method Summary collapse

Instance Method Details

#privacy(device, action, service, bundle) ⇒ void

This method returns an undefined value.

Change privacy settings

Parameters:

  • device (SimCtl::Device)

    the device

  • action (String)

    grant, revoke, reset

  • service (String)

    all, calendar, contacts-limited, contacts, location, location-always, photos-add, photos, media-library, microphone, motion, reminders, siri

  • bundle (String)

    bundle identifier



13
14
15
16
17
18
# File 'lib/simctl/command/privacy.rb', line 13

def privacy(device, action, service, bundle)
  unless Xcode::Version.gte? '11.4'
    raise UnsupportedCommandError, 'Needs at least Xcode 11.4'
  end
  Executor.execute(command_for('privacy', device.udid, action, service, bundle))
end