Comments (11)
TLDR: check your installed dependencies if you're using version 2.0.1-rc.x
Hey guys, I was having the same problem in a project which currently uses RN 0.32.
After clean installing my dependencies, I noticed the build was failing on XCode. So I looked at my package.json and saw "react-native-fs": "^2.0.1-rc.2"
. Then I ran npm ls react-native-ls
and noticed the actual installed version was 2.0.1-rc.3, which introduces the library import change that was breaking the build. So I did the following:
- removed the ^ from that line in package.json to force it to install rc.2
- clean install node_modules
- on XCode,
Product -> Clean
thenBuild
again...
And it worked!
from react-native-fs.
getting this problem, any solution?
from react-native-fs.
@siwymilek Any clue how you solved this would be really appreciated!
from react-native-fs.
I am having the same issue. No luck with the Header Search Paths. #238 fixed the issue for me when I applied it manually.
from react-native-fs.
@vspedr Indeed, we performed the same action and that solved the issue!
from react-native-fs.
I too recently got this error for no apparent reason. Checking versions, build paths, etc.. no luck yet. Prevented builds for over a day now.
from react-native-fs.
I had this occur with the test app last night after an upgrade. I solved it by making sure the "Build Settings" -> "Header Search Paths" was set to include the React library. You should have this entry:
$(SRCROOT)/../node_modules/react-native/React
- (Recursive)
You might also be able to fix it by removing and re-adding the reference to library, but that didn't work for me. Hope this helps.
from react-native-fs.
@cjdell Just tried including that in the "Build Settings" -> "Header Search Paths". Unfortunately, no luck :(
from react-native-fs.
@iSimar Did you do it for both Project and Target (in the sidebar)? They are actually two separate configurations (not sure why). Failing that, you could try a reinstall of the react-native module.
from react-native-fs.
Think i found the fix, no need to change "Header Search Paths".
PR created:
#238
Also discussed this issue on stackoverflow:
http://stackoverflow.com/a/41664041/3152113
Update: Yupe, works on iOS now.
from react-native-fs.
#238 worked for me when I implemented it manually, but it just didn't feel comfortable editing a module i don't support.
Eventually I fixed it without modifying the RNFS package by doing the following:
-
Checked my react-native version. I was running
0.33.0
(default installed by CLI). So I upgraded to0.36.0
. (also tried 0.40.0, but there's a library import change on that build) -
I removed all files in
ios/*
and deletednode_modules
. Then I rannpm install && react-native upgrade
which installed my upgraded react-native package. -
I ran
react-native link
and I was up and running.
Funny enough, when I popped into the app this morning it threw the error again, but when I ran through the steps above it fixed it for me. Still feel like there's a better solution out there.
from react-native-fs.
Related Issues (20)
- iOS uploadFiles error handling ignores error
- Uploading file to s3 is always setting binary content type HOT 2
- Please Help: uploadFile() sending empty or corrupted files to Google Drive API
- Asset file download to device HOT 3
- The operation couldn’t be completed. No space left on device
- CacheDirectory clearing data in IOS HOT 1
- RNFS.readDir(path) only returns folders in directory files are excluded HOT 3
- Installing react-native-fs causes app to crash. (Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager.) HOT 1
- Upload timeouts HOT 2
- downloadFile 并不是一个Promise对象 await无效 HOT 1
- [improvement] downloading file in background on iOS
- How integrate with react-native use Kotlin (RN: 0.73.0) instead of Java for Android? HOT 5
- Jpk
- Could not resolve all files for configuration ':react-native-fs:androidJdkImage'. HOT 1
- ZIP files corrupted - END header not found
- Access denied
- can't get mp4 files from external storage(from smartphone) In android
- readFileAssets block/freeze the UI HOT 1
- Support for New Architecture HOT 1
- Issue when run the app on device in android or ios HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-fs.