-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RN 0.49-rc.5] Fishhook error #16039
Comments
update I figured it out to be a mis-import in reconnecting websocket, it links to
while it should link to
|
This is a similar issue to #13198 I think this stems from Cocoapods not defining subspecs as modules/frameworks so there is no
or
An alternative in this case would be to depend on the |
I believe this is addressed in #16192 so I'm going to close this. That commit should go out with 0.49.1 in an hour or so. |
@johannth You can add a postinstall script to fix that issue into your package.json like
|
@rob-keepsafe It is fixed in 0.49.1, the issue doesn't occur on a lower version, so it should be good |
@rob-keepsafe are you using pods, in which case you would need to pod update for it to take full effect. I updated from 0.48 to 0.49.1 and it worked just fine after clearing my workspace (cmd shift alt k, cmd shift k), running a clean install, then pod updating |
@mobinni Also installed React for the first time using cocoapods and followed the guide here: https://facebook.github.io/react-native/docs/integration-with-existing-apps.html Also seeing the missing fishhook import |
Reopening since people seem to be having issues still but am not working on it / don't know that anyone is, just to set expectations. I'd also add that to remove potential discrepancies between dev environments, the patch that fixed this issue in some contexts was tested with Xcode 9 on Mac 10.13. |
Anyone have any idea which older version does not have this issue?
- Michael MacDougall
… On Oct 9, 2017, at 5:47 PM, James Ide ***@***.***> wrote:
Reopening since people seem to be having issues still but am not working on it / don't know that anyone is, just to set expectations.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@macdoum1 No, but you can work around it for now via #16039 (comment) |
Fairly new to react, but opened a PR here addressing the import: https://github.com/facebook/react-native/pull/16271/files |
having the same issue too in 0.49.3. Also, there was a similar issue, still happening in 0.49.3:
|
this is still happening in 0.49.3 |
the same problem in 0.50.0-rc.1 |
+1 still happening in 0.49.3 |
This happened to me when creating a new react native project. I found out that removing |
Hi guys, Today I came across with the integration to an existing platform using swift and I ran into several issues... Reduced my podfile to this: target 'sampleApp' do
use_frameworks!
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTSettings',
'RCTWebSocket', # needed for debugging
]
end Once all the pods are installed, build does not work as #import <fishhook/fishhook.h> Checking the source code I have managed to get it to work at the moment by changing that line to #import "fishhook.h" or #import <React/fishhook.h> I can see this issue has been closed and merged... (and reopened?)... but it seems quite unstable to me... these are my dependencies. "react": "^16.1.0",
"react-native": "^0.50.3" |
@rodrigoelp I went for not using react native modules from cocoapods, only use cocoapods for non-RN dependenfies that RN modules being linked with “react-native link”. |
@bithavoc can't find any ressources on how to integrate react-native into an existing app without cocoapods. Modifying the source-code works for now but it is a ugly fix, would be great to have a real pr on this. |
This is not happening to us and we're running cocoapods and has done since 2015. We're currently at the 0.51.0 release |
@ptomasroos are you using |
Nope not using use_framework @MoOx |
That's what is creating this problem. So there is a major issue that make it impossible to use RN with use_frameworks! currently. |
Try the patches from here: #17764 (comment) |
This should probably be solved using this approach: #13198 (comment) |
This is my gist for RN 0.51.0 and React 16.0.0 (it works) |
This issue is not resolved in RN 0.56.0-rc.2. |
This has not been fixed. Here is the line that is causing the issue when you are using cocoapods with frameworks: |
@MoOx I am using Swift and have @rodrigoelp Is pointing to the right file and line of the error changing |
…16271) Summary: RCTReconnectingWebSocket is not compiling correctly because of an incorrect import (#16039). Everything build and run as usual. [IOS] [BUGFIX] [Fishhook] - Correct fishhook import in RCTReconnectingWebSocket Fixes #16039 Closes #16271 Differential Revision: D8679758 Pulled By: hramos fbshipit-source-id: b05dda3a01a68ace87f11889b84ce6b323e5c16a
…16271) Summary: RCTReconnectingWebSocket is not compiling correctly because of an incorrect import (#16039). Everything build and run as usual. [IOS] [BUGFIX] [Fishhook] - Correct fishhook import in RCTReconnectingWebSocket Fixes #16039 Closes #16271 Differential Revision: D8679758 Pulled By: hramos fbshipit-source-id: b05dda3a01a68ace87f11889b84ce6b323e5c16a
Is this a bug report?
No.
I tried to manually upgrade from 0.48.3 to 0.49-rc.5 due to the
BLOB_URL
error that happens in sed version.jestjs/jest#4433
#15810
When upgrading everything went well until the following error occurred:
I tried adding:
However this did nothing for me, there is currently no documentation on how to integrate fishhook when manually upgrading. Can anyone help?
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12.4
Node: 7.8.0
Yarn: 0.24.6
npm: 5.4.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Packages: (installed)
react-native: 0.49-rc.5
react: 16.0.0-alpha.12
Target Platform: iOS (10.3)
Expected Behavior
Build succeeds
Actual Behavior
Build fails because it cannot find fishhook files
The text was updated successfully, but these errors were encountered: