react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.33k stars 434 forks source link

Build Failed!. Error while running on ios #685

Closed developerasmita1998 closed 8 months ago

developerasmita1998 commented 8 months ago

Bug report

Summary

Added react-native-document-picker with new vesion but build is failing with new versions.

Reproducible sample code

"react": "18.2.0", "react-native": "0.72.5", "react-native-document-picker": "^9.0.1",

Steps to reproduce

  1. Add library in Project
  2. Run with xcode after pod install.

Describe what you expected to happen:

  1. Build failed
  2. Given some errors

Environment info

npx react-native info output:

System:
  OS: macOS 14.0
  CPU: (8) arm64 Apple M1
  Memory: 118.25 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.7.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.1.0
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2023.09.25.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10811636
  Xcode:
    version: 15.0/15A240d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.16
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Terminal

library version:

 "react": "18.2.0",
    "react-native": "0.72.5",
    "react-native-document-picker": "^9.0.1",

iOS / Android version:

xcode : Version 15.0 (15A240d)
IOS: 17.0

Error:

Undefined symbol: _UTTypeCopyPreferredTagWithClass
Undefined symbol: _UTTypeCreatePreferredIdentifierForTag
Undefined symbol: _kUTTagClassFilenameExtension
Undefined symbol: _kUTTagClassMIMEType
Linker command failed with exit code 1 (use -v to see invocation)
1
github-actions[bot] commented 8 months ago

:wave: @developerasmita1998, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!