alpha0010 / react-native-file-access

Filesystem access for React Native
MIT License
298 stars 18 forks source link

Error to build project after installation of this package #44

Closed teckbeng-payboy closed 2 years ago

teckbeng-payboy commented 2 years ago

Version "react": "17.0.2", "react-native": "0.67.2",

alpha0010 commented 2 years ago

What is the error you are seeing?

Does the example project work for you?

git clone https://github.com/alpha0010/react-native-file-access.git
cd react-native-file-access
yarn
yarn example android
yarn example ios
Navipro70 commented 2 years ago

@alpha0010 Compiling for iOS 10.0, but module 'ZIPFoundation' has a minimum deployment target of iOS 12.0

I thinks needs up deployment target to 12.

alpha0010 commented 2 years ago

For me, cocoapods automatically chooses compatible dependencies, which in this case resolves to ZIPFoundation 0.9.11, which is minimum iOS 9.0.

Is it giving you a different version of ZIPFoundation?

honzajerabek commented 2 years ago

I have the same problem, cocoapods automatically resolved ZIPFoundation 0.9.13, which is minimum iOS 12.0 but react-native-file-access has minimum iOS 11.0.

This leads to build error.

I was able to workaround by manually specifing the older version that @alpha0010 mentioned in my Podfile:

...

pod 'ZIPFoundation', '0.9.11'

...

It doesn't seem right though

alpha0010 commented 2 years ago

Should be fixed in v2.2.2.