Change the alert type on ipad to avoid this or provide a source view as suggested by the exception description.
var alertStyle: UIAlertController.Style = .actionSheet
if PhoneModelService.isIpad() {
alertStyle = .alert
}
let alertController = UIAlertController(title: nil,
message: nil,
preferredStyle: alertStyle)