Uh oh!
There was an error while loading. Please reload this page.
Fix reference to fishhook.h in RCTReconnectingWebSocket.m - #16130
Fix reference to fishhook.h in RCTReconnectingWebSocket.m#16130mobinni wants to merge 2 commits into
Conversation
ide
commented
Oct 4, 2017
Another commit that fixes this via the podspec has landed (#16192) and will be going out with 0.49.1 in an hour or so if the build pipeline succeeds. I'm going to close this out since that commit should fix your issue and please tell us if it doesn't. |
VinceBurn
commented
Oct 18, 2017
Hi @ide I'm using react-native 0.49.3 and this issue is still valid, my project is not compiling with Xcode 9 if I don't change the source in my Pod version of 'RCTReconnectingWebSocket.m'. This merge request need to be reopen since the problem is clearly not fixe. |
ide
commented
Oct 19, 2017
OK, it's clear this is still an issue but I don't think it is right to modify the source code though I could be wrong about that, I don't have visibility into Facebook's internal build systems. The right fix I think is to figure out how to get Xcode to treat fishhook as a header directory. |
oskarsliukis
commented
Nov 1, 2017
Any updates? Can't upgrade to latest RN version due to this and changing import manually is not an option. |
| #import <React/RCTConvert.h> | ||
| #import <React/RCTDefines.h> | ||
| #import <fishhook/fishhook.h> | ||
| #import "fishhook.h" |
There was a problem hiding this comment.
I don't think this change is correct. The fishhook.h file is not in the same directory, so importing it needs to be done through the fishhook library, e.g. #import <fishhook/fishhook.h>.
It might be the case that it's actually included under React, instead (see #16192 (comment)).
msand
commented
Mar 10, 2018
This should probably be solved using this approach: #13198 (comment) |
Motivation
When upgrading to react-native 0.49 you get an error due to a reference to
fishhook.hinRCTReconnectingWebSocket.m. When I read the fishhook docs it specified that when thefishhook.abinary is linked references should be imported as:Link to issue: #16039
https://github.com/facebook/react-native/blob/master/Libraries/fishhook/README.md
Test Plan
Upgrade from a clean react-native 0.48 to 0.49, upgrade your podspec to include fishhook.
Run the project and it should fail on this import.