Skip to content

[0.48.0]: Error: Redefinition of RCTMethodInfo #15775

Closed
@joncursi

Description

@joncursi
Contributor

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 various react-native-* modules I have installed.

screen shot 2017-09-03 at 3 46 44 pm

Activity

joncursi

joncursi commented on Sep 3, 2017

@joncursi
ContributorAuthor

FWIW, I downgraded to 0.47.2, cleared derived data, cleaned the project, and now I'm operational again. There's something funky going on in the new 0.48.0 release.

fabriziogiordano

fabriziogiordano commented on Sep 3, 2017

@fabriziogiordano

Probably dupe for #15762

joncursi

joncursi commented on Sep 4, 2017

@joncursi
ContributorAuthor

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.

grabbou

grabbou commented on Sep 4, 2017

@grabbou
Contributor

Not a duplicate - I couldn't reproduce this issue.

robertmerten

robertmerten commented on Sep 4, 2017

@robertmerten

React Native 0.48.1

Same issue here with a third party module

bildschirmfoto 2017-09-04 um 11 56 23

iegik

iegik commented on Sep 4, 2017

@iegik

Previous definition is here: https://github.com/facebook/react-native/blob/master/React/Base/RCTBridgeModule.h#L54
First in commit: cb12080#diff-6dc01074330d7af8d99288cad5a021b7

Question: Should RCTMethodInfo to be defined "globally" in React/Base?

iegik

iegik commented on Sep 4, 2017

@iegik

Resolved, by changing import priority: zoontek/react-native-permissions#137

exentrich

exentrich commented on Sep 4, 2017

@exentrich

Same issue

iegik

iegik commented on Sep 4, 2017

@iegik

@exentrich clean project, rebuild [CMD] + [CTRL] + [SHIFT] + [K]

MatthieuPeyrot

MatthieuPeyrot commented on Sep 4, 2017

@MatthieuPeyrot

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

iegik

iegik commented on Sep 4, 2017

@iegik

Fixed in #15783

MatthieuPeyrot

MatthieuPeyrot commented on Sep 4, 2017

@MatthieuPeyrot

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.

iegik

iegik commented on Sep 4, 2017

@iegik

@MatthieuPeyrot Please, review #15788

MatthieuPeyrot

MatthieuPeyrot commented on Sep 4, 2017

@MatthieuPeyrot

@iegik Even with this I have RCTDevMenu.h file not found

64 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fabriziogiordano@iegik@aino-gautam@robertmerten@pincheira

        Issue actions

          [0.48.0]: Error: Redefinition of RCTMethodInfo · Issue #15775 · facebook/react-native