document-picker icon indicating copy to clipboard operation
document-picker copied to clipboard

All FIles Non-Selectable

Open Rcuz8 opened this issue 2 years ago • 12 comments

Bug report

Summary

No files are available to be selected on the iOS Simulator (15.2). The app also never requests access to Files Settings > Privacy > Files & Folders when the picker is loaded, which seems curious.

Reproducible sample code

Steps to reproduce

const file = await DocumentPicker.pickMultiple({
  type: DocumentPicker.types.allFiles
});

You will see the files, but none will be available to select. Screen Shot 2022-02-02 at 5 14 34 PM

Describe what you expected to happen:

All files should be available to be selected.

Environment info

npx react-native info output:

System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 119.30 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.3.1 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.3.0 - /opt/homebrew/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 29, 32
      Build Tools: 29.0.2, 32.0.0
      System Images: android-29 | Intel x86 Atom_64, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.1 => 0.64.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

library version: 5.2.0

iOS / Android version: iOS 15.2

Rcuz8 avatar Feb 02 '22 22:02 Rcuz8

same

EmreGurbuzz avatar Feb 08 '22 09:02 EmreGurbuzz

We solved the problem using another emulator.

EmreGurbuzz avatar Feb 11 '22 15:02 EmreGurbuzz

We solved the problem using another emulator.

Another Xcode/iOS emulator ?

Rcuz8 avatar Feb 11 '22 15:02 Rcuz8

we were doing the normal trials with the iPhone 13. After having problems we tried another emulator and it worked. The emulator we are running is iPhone 12 pro. We haven't tried any other emulators. The laptop I'm using is a MacBook with an m1 processor. When we tried the same project files on another m1 MacBook, it was working fine again. we didn't specifically try a separate emulator on the other device. maybe the problem was with the emulator device on my device which is the iPhone 13.

EmreGurbuzz avatar Feb 11 '22 16:02 EmreGurbuzz

Having same issue on iOS Simulator (15.2). Related to #498

"react-native-document-picker": "^8.0.0",

anniewey avatar Mar 01 '22 06:03 anniewey

Similar issue on Android 9 device (not emulator). I can not pull up some specific file types (.pfx in this case). Is this wanted behavior? If yes, then how do I get these type of files?

"react-native-document-picker": "^6.1.1"

gtabuada avatar Mar 08 '22 15:03 gtabuada

same

Edit: It was IOS 15 simulator issue, I'm using version 13.4, it is working now. Look at my comment https://github.com/rnmods/react-native-document-picker/issues/498#issuecomment-1073957302

arasovic avatar Mar 15 '22 14:03 arasovic

same

carlosen14 avatar Mar 25 '22 19:03 carlosen14

Only fails on iOS simulator, real devices do work!! also android emulators work!

carlosen14 avatar Mar 25 '22 23:03 carlosen14

Same issue on simulator iPhone 12 Pro with iOS 15. Changed to simulator iPhone 11 Pro with iOS 13.7 and it's working

CaioQuirinoMedeiros avatar Mar 30 '22 22:03 CaioQuirinoMedeiros

On same software version iOS 13.0 (iPhone 11), files are not greyed out but still are not selectable.

Rcuz8 avatar Apr 01 '22 13:04 Rcuz8

I got this working on real device

pigpudle avatar Jul 04 '22 09:07 pigpudle

Duplicate of #498

vonovak avatar Oct 15 '22 15:10 vonovak