Rn-fetch-blob: library not found for -lRNFetchBlob

Created on 15 Sep 2019  路  2Comments  路  Source: joltup/rn-fetch-blob

React Native: 0.60.5
Platform: iOS
I have upgraded from react-native-fetch-blob to [email protected].

Screenshot 2019-09-15 at 5 50 54 AM

The build fails with linker error:

ld: library not found for -lRNFetchBlob
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Most helpful comment

Issue was that RNFetchBlob.a was present in Build phases -> linked libraries. After removing it from there rn-fetch-blob started working.

All 2 comments

To figure out the root cause of the problem, i decided to remove fetch-blob package.

So I removed rn-fetch-blob and react-native-cached-image which was internally using react-native-fetch-blob.
I have also unlinked rn-fetch-blob, removed it from package.json, have deleted node_modules, did yarn install.
Cleaned the build folder in XCode but still the build fails with lRNFetchBlob not found.

I have even checked node_modules folder there is no rn-fetch-blob present but still xcode is trying to link this package. What else could I be missing?

Issue was that RNFetchBlob.a was present in Build phases -> linked libraries. After removing it from there rn-fetch-blob started working.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alpha0010 picture alpha0010  路  20Comments

singhlovey picture singhlovey  路  12Comments

Evangelione picture Evangelione  路  16Comments

Traviskn picture Traviskn  路  15Comments

nobady90 picture nobady90  路  22Comments