rn-fetch-blob: 'React/RCTDefines.h' file not found
Hi,
Installed Versions:
- “react-native”: “0.61.2”
- “rn-fetch-blob”: “^0.11.2”
we recently upgraded from react-native version 0.59 to 0.61 and now the rn-fetch-blob library no longer works with XCode, we get the following errors when trying to build the project:
In the error stack trace it says that the error originates from node_modules/rn-fetch-blob/ios/RNFetchBlob/RNFetchBlob.h:22
Any ideas or pointers on how we can solve this issue?
Thanks in advance for your support.
Best regards, Thomas
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 9
- Comments: 18
Links to this issue
Commits related to this issue
- Header search paths fixed according to https://github.com/joltup/rn-fetch-blob/issues/461 — committed to Warecorp/rn-fetch-blob by deleted user 4 years ago
Ok, I managed to fix it (for me, at least). What you do is the following:
${SRCROOT}/../../../ios/Pods/Headers. Make sure to set it torecursive.Repeat for other libraries that complain about missing
React/<whatever>.hfiles, perhaps with differing amounts of../before theios/Pods/Headers/@josectobar Where are you adding that workaround? If I replace the error line in the OP with that, I just get new errors (
'React/RCTAssert.h' file not found).Did anyone got this error while trying this solution?
I have the same issue. React-Native: 0.62.2 React: 16.11.0 rn-fetch-blob: 0.12.0
Recursive option was also set
After following the
${SRCROOT}/../../../ios/Pods/HeadersI ran into another issue with duplicate symbols.Anyone have any ideas how to fix this? 🤔(Edit: fix is down below 👇🏾 )Edit (fix found 🚀 ): Here’s the fix:
libRNFetchBlob.afromYour_Project_Name > General > Frameworks, Libraries, and Embedded Content(assuming you following the manual linked guide like I did)Podfile:pod installfrom theiosfolder 🤞🏾The issue seemed to be that because I was already linking the pods directly (see pic below) I didn’t need to manually add the
libRNFetchBlob.afile. Here’s what my final frameworks section looked like:Hi @judygab, I tried your solution and got the errors you mentioned above too. Did you solve it already? If so, can you please tell me how? Thanks in advance.