prscX / react-native-file-selector

React Native: Native File Selector
Apache License 2.0
307 stars 58 forks source link

'FileBrowser/FileBrowser-Swift.h' file not found #71

Open theLastCc opened 4 years ago

theLastCc commented 4 years ago

the version RN0.61.5 no such problem,RN0.61.5 upgrade to the 0.62.0 。 Running project prompt 'FileBrowser/FileBrowser-Swift.h'

Raiden-Liu commented 4 years ago

I met the same problem.How to solve it?

prscX commented 4 years ago

Need to look into it. I have not tried it with RN62. Will share update ASAP.

cw0925 commented 4 years ago

me too

theLastCc commented 4 years ago

Need to look into it. I have not tried it with RN62. Will share update ASAP.

FileBrowser/FileBrowser-Swift.h is a dynamic file ?

prscX commented 4 years ago

Based on my initial search. With RN62 onwards, one of the major feature we have is a deep integration with Flipper. As per Example Podfile it looks like if we use use_frameworks! in Podfile then we can't enable Flipper at the moment.

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
     add_flipper_pods!
    post_install do |installer|
      flipper_post_install(installer)
    end

We need to add use_frameworks! because FileBrowser is a Swift library and as per my understanding in order to use Swift library using Github path then we need to add use_frameworks! to Podfile.

I will be a detailed study on how we can enable both Flipper and this library but for the moment we need to do a trade between both the libraries.

If we enable above mentioned snippet and also comment it from AppDelegate then this library works fine.

Would be very helpful and you find and share some solution around it.

Thanks </ Pranav >

crutchcorn commented 4 years ago

Is there any update on this? It's a blocker for running my app on iOS running React Native 0.61.5

xy-space commented 4 years ago

How to solve?

flyskywhy commented 4 years ago

@prscX , maybe ref to https://github.com/react-native-community/react-native-permissions#workaround-for-use_frameworks-issues ? I have not test it, just think maybe it's an solution.

meiqi1992 commented 4 years ago

0.63.2 same issue

meiqi1992 commented 4 years ago

@theLastCc had resolved?

kurisu994 commented 4 years ago

same problem, anyone had resolved?

rajatpillai commented 4 years ago

Facing the same problem, Had anyone got any solution?

MOwais commented 4 years ago

Same

giscafer commented 4 years ago

same 0.63.3

zailushang639 commented 3 years ago

我也遇到了 但是把FileBrowser源码单拖出来编译之后的framework拖进工程是可以成功编的,单独编译的会生成FileBrowser-Swift.h 这个headers文件 不知道为什么pod装进去的没有

giscafer commented 3 years ago

我也遇到了 但是把FileBrowser源码单拖出来编译之后的framework拖进工程是可以成功编的,单独编译的会生成FileBrowser-Swift.h 这个headers文件 不知道为什么pod装进去的没有

use react-native-document-picker instead of this