-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.48.0]: Error: Redefinition of RCTMethodInfo #15775
Comments
FWIW, I downgraded to |
Probably dupe for #15762 |
Hmm. I saw that but didn't think so because the project in #15762 actually compiles, and then crashes, whereas this straight up won't compile. |
Not a duplicate - I couldn't reproduce this issue. |
Previous definition is here: https://github.com/facebook/react-native/blob/master/React/Base/RCTBridgeModule.h#L54 Question: Should |
Resolved, by changing import priority: zoontek/react-native-permissions#137 |
Same issue |
@exentrich clean project, rebuild [CMD] + [CTRL] + [SHIFT] + [K] |
I fix the issue by changing in all my module who use #import "RCTBridgeModule.h" into #import <React/RCTBridgeModule.h> but it trigger an other issue /node_modules/react-native/React/Base/RCTTVRemoteHandler.m:25:9: 'RCTDevMenu.h' file not found |
Fixed in #15783 |
Even with this fix i try #import <React/RCTDevMenu.h> and #import "RCTDevMenu.h" clean rebuild nothing change i still have the issues and the parallelize build is disabled. |
@MatthieuPeyrot Please, review #15788 |
@iegik Even with this I have RCTDevMenu.h file not found |
@iegik , I have applied your fix how ever it didnt work for me , still have redefinition of RCTMethodInfo, |
@kozillla do you have react-native-permissions in your project included? |
@iegik no,I do not use it. |
@kozillla I had the same issue. I dont know if its the correct way to fix the issue but here it is: change the React.podspec (node_modules/react-native) line " React/DevSupport/* " in ss.exclude_files of subspec "Core" to "React/DevSupport/*.{c,m,mm,S}". Run pod install and should work. |
Same error here with RCTDevMenu.h, when upgraded RN from 0.47 to 0.48.1. From XCode:
@jorgefspereira's workaround works and my app builds! Though obviously not a proper fix. |
@grabbou please note that RN 0.48.1 seems to have fixed this issue's original |
@jorgefsereira thx for sugestion but I dont use pods to manage react-native, also problem persist in RN 0.48.1 |
@kozillla I was right, you found that module, which conflicts with React Native. Same situation here: zoontek/react-native-permissions#138 |
I had the same issue from a Ble lib. If I change the imports from the header module from:
to:
it fix my problem. |
@iegik ,thanks for pointing issue, you are right, fixing import sequence in third part modules resolve this problem |
+1 - RCTDevMenu.h file not found |
RCTDevMenu.h file not found is happening for me too, in RCTTVRemoteHandler.m |
Is this issue getting looked at by management upstairs? No tag or assignment, and this should be priority fix with a .2 release considering it's build breaking. Shouldn't RN releases pass basic build tests before being released in the first place? 😢 |
升级到 [email protected] 以后,出现 facebook/react-native#15775 这个问题,调整顺序后解决。
升级到 [email protected] 以后,出现 facebook/react-native#15775 这个问题,调整顺序后解决。
See this issue for reference: facebook/react-native#15775 (comment) Seems like React doesn't like it when the fallback is the *new* import, the fallback should be the old way.
this would not build in react-native 48.1+ its related to this facebook/react-native#15775
@joncursi are you still using the patched version for react-native-oauth? Cheers! |
Yes
…On Sun, Feb 25, 2018 at 5:43 PM jp pincheira ***@***.***> wrote:
@joncursi <https://github.com/joncursi> are you still using the patched
version for react-native-oauth? Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15775 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEvoEQ9kYdB_tzfjvj97FYffhw0foMVEks5tYeH1gaJpZM4PLSLF>
.
|
@iegik I get |
FWIW I made the change shown here : zoontek/react-native-permissions#137 It didn't work. So I reverted the changes, rebuilt, and the app is running now. Ofc, I also had manually linked |
following facebook/react-native#15775 and this PR - https://github.com/nico1510/react-native-image-crop-picker/pull/9/files it works for me this way i am not sure about the right order for TOCropView.h, just kept it between
This appears to be the accepted fix for this issue: a7ul#46 per facebook/react-native#15775 (comment) and other posts in the same thread.
This is to correspond with React Native 0.48. It no longer works with #import "RCTBridgeModule.h" (see this issue: facebook/react-native#15775). This fixes issue.
just write |
Refer to this SO Q/A for an accurate solution - |
…ani/fullstackreact/react-native-oauth master branch (#1) * Added fullstackreact#171 and my NSString *clientID fix, which might not be as good as https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m * Added fullstackreact#171 and my NSString *clientID fix, which might not be as good as https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m * Added fullstackreact#171 and my NSString *clientID fix, which might not be as good as https://github.com/fullstackreact/react-native-oauth/blob/2f8c8d1483526bbc8a6ca72183c6d11a71538ad3/ios/OAuthManager/OAuthManager.m * Merge PR 121, fix user agent, fix full screen webview * Changed if/else statement to avoid React error. * Fix duplicate RCTMethodInfo import (facebook/react-native#15775) (zoontek/react-native-permissions#137) * Fix duplicate React library import error conflict w/certain pods * Pass back response headers over javascript bridge * Dispatch safariViewController on main queue The safariViewController dispatch was occuring on another thread. This sometimes caused app crashes when the view was presented, in particular if the keyboard had been presented via a TextInput or other component. The resulting crash complained about _cachedSystemAnimationFence and the main thread. This has been with other React Native apps that load a viewController. Dispatching to present the viewController on the main thread fixes this issue. * Fix build issue * Remove deprecated @OverRide * Fix: Duplicate RCTMethodInfo while building iOS app * Fix error for redefinition of RCTMethodInfo * Ignored dist/ * 2.1.16 * 2.1.17 * 2.1.18
After upgrading from
0.47.2
->0.48.0
, I can't get XCode to build anymore. I've tried clearing out derived data, cleaning the project, etc. It's consistently failing with this error, across variousreact-native-*
modules I have installed.The text was updated successfully, but these errors were encountered: