react-native-file-selector icon indicating copy to clipboard operation
react-native-file-selector copied to clipboard

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

Open theLastCc opened this issue 4 years ago • 16 comments

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

theLastCc avatar Apr 03 '20 01:04 theLastCc

I met the same problem.How to solve it?

Raiden-Liu avatar Apr 03 '20 02:04 Raiden-Liu

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

prscX avatar Apr 03 '20 17:04 prscX

me too

cw0925 avatar Apr 08 '20 06:04 cw0925

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

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

theLastCc avatar Apr 10 '20 07:04 theLastCc

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 >

prscX avatar Apr 14 '20 11:04 prscX

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

crutchcorn avatar May 09 '20 04:05 crutchcorn

How to solve?

xy-space avatar Jun 08 '20 09:06 xy-space

@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.

flyskywhy avatar Aug 20 '20 06:08 flyskywhy

0.63.2 same issue

meiqi1992 avatar Oct 12 '20 09:10 meiqi1992

@theLastCc had resolved?

meiqi1992 avatar Oct 12 '20 09:10 meiqi1992

same problem, anyone had resolved?

kurisu994 avatar Nov 03 '20 07:11 kurisu994

Facing the same problem, Had anyone got any solution?

rajatpillai avatar Nov 18 '20 05:11 rajatpillai

Same

MOwais avatar Nov 19 '20 20:11 MOwais

same 0.63.3

giscafer avatar Nov 24 '20 07:11 giscafer

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

zailushang639 avatar Dec 31 '20 06:12 zailushang639

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

use react-native-document-picker instead of this

giscafer avatar Jan 01 '21 08:01 giscafer