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 #701

Closed tzw99556 closed 3 months ago

tzw99556 commented 4 months ago

Discussed in https://github.com/rnmods/react-native-document-picker/discussions/684

Originally posted by **developerasmita1998** October 11, 2023 **Env:** ``` "react": "18.2.0", "react-native": "0.72.5", "react-native-document-picker": "^9.0.1", ``` **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) ``` Please suggest. I am stuck here.
tzw99556 commented 4 months ago

Have been looking through the discussion forum and issues many issues regarding this has been closed and not being addressed. where IOS build fails as it could not connect with the linker for v9 and above

s7k11 commented 4 months ago

Try downgrading for package version , it worked for me.

yarn remove react-native-document-picker yarn add react-native-document-picker@8.2.1 cd ios && pod install

github-actions[bot] commented 3 months ago

:wave: @tzw99556, 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!