Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Bug] App crashes on iOS 10 when the internal implementation attempts to set AllowsMultipleSelection #1492

@1Cor125

Description

@1Cor125

Description

App crashes when calling PickFileAsync on iOS 10.

Steps to Reproduce

  1. Call PickFileAsync(options) on iOS 10.
  2. App crashes with UIDocumentPickerViewController.set_AllowsMultipleSelection (System.Boolean value) SIGABRT: This API is not supported on this version of iOS

Expected Behavior

We should be wrapping this line of code in a version check but we are only checking the version at the beginning of the method when deciding whether to respect the allowMultiple parameter.

Actual Behavior

We should be doing this:

if (Platform.HasOSVersion(11, 0))
    documentPicker.AllowsMultipleSelection = allowMultiple;

Basic Information

  • Version with issue: 1.6.0-pre2
  • Platform Target Frameworks:
    • iOS: 10.3.3 (any pre 11 version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions