document-picker
document-picker copied to clipboard
All FIles Non-Selectable
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.
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
same
We solved the problem using another emulator.
We solved the problem using another emulator.
Another Xcode/iOS emulator ?
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.
Having same issue on iOS Simulator (15.2). Related to #498
"react-native-document-picker": "^8.0.0",
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"
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
same
Only fails on iOS simulator, real devices do work!! also android emulators work!
Same issue on simulator iPhone 12 Pro with iOS 15. Changed to simulator iPhone 11 Pro with iOS 13.7 and it's working
On same software version iOS 13.0 (iPhone 11), files are not greyed out but still are not selectable.
I got this working on real device
Duplicate of #498