react-native-documents / document-picker

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

Error while running on ios #664

Closed faizii023 closed 1 year ago

faizii023 commented 1 year ago

Steps to recreate: Delete node_modules,ios build folder,Podfile.lock ,package.lock/yarn.lock Then npm install/yarn then cd ios pod install --repo-update This is my podfile: require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported $RNFirebaseAsStaticFramework = true prepare_react_native_project! use_modular_headers!

linkage = ENV['USE_FRAMEWORKS'] if linkage != nil Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green use_frameworks! :linkage => linkage.to_sym end

target 'ktGuru' do use_frameworks! config = use_native_modules!

flags = get_default_flags()

use_react_native!( :path => config[:reactNativePath], :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], :app_path => "#{Pod::Config.instance.installation_root}/.." )

target 'ktGuruTests' do inherit! :complete end

post_install do |installer| react_native_post_install( installer, :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end

And currently I'm using 9.0.1 version "react-native-document-picker": "^9.0.1", The error I'm getting is : The following build commands failed: Ld /Users/mokshassd/Library/Developer/Xcode/DerivedData/ktGuru-fkjxmwzykctzkhbbaukelaidwbgk/Build/Products/Debug-iphonesimulator/react-native-document-picker/react_native_document_picker.framework/react_native_document_picker normal (in target 'react-native-document-picker' from project 'Pods') (1 failure)

And in the Xcode I'm getting this 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)

Dozorov commented 1 year ago

same error

github-actions[bot] commented 1 year ago

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