react-native run-ios发出此错误

时间:2017-07-13 00:59:16

标签: ios react-native react-native-ios

问题

当我运行react-native run-ios

我收到以下错误:

In file included from /Users/zoe/Developer/fireClient/node_modules/react-native-overlay/RNClickThroughWindow.m:2:
../react-native/React/Views/RCTView.h:21:1: error: duplicate interface definition for class 'RCTView'
@interface RCTView : UIView
^
In file included from /Users/zoe/Developer/fireClient/node_modules/react-native-overlay/RNClickThroughWindow.m:2:
In file included from ../react-native/React/Views/RCTView.h:15:
/Users/zoe/Developer/fireClient/ios/build/Build/Products/Debug-

......还有更多:https://justpaste.it/18vvl

我想知道我能做些什么来解决这个问题。

我已升级到RN的最新版本,并且我已将所有包裹链接起来。

1 个答案:

答案 0 :(得分:1)

我认为您可以从react-native-overlay删除node_module。然后再次尝试安装npm install react-native-overlay --save。或者您可以在RN 0.40之前升级。

我认为你的问题与#Issue 463相同。

希望我能帮助你。