react native run ios出现此错误 发行

react native run ios出现此错误 发行,ios,react-native,react-native-ios,Ios,React Native,React Native Ios,当我运行react本机运行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' @interf

当我运行
react本机运行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-
。。。这里还有更多:

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


我已经升级到RN的最新版本,并且我已经链接了我的所有包

我认为您可以从
node\u模块
中删除
react native overlay
。然后再次尝试安装
npm install react native overlay--save
。或者您可以在升级到RN 0.40之前进行升级

我想你的问题和这个问题是一样的


希望我能帮助您。

这是因为您正在使用react native overlay。请不要按照自述文件中的建议使用此回购协议。您可以使用绝对定位和z-index完成您正在尝试的操作。我尝试同时删除模块,但仍然不起作用。好的,然后我删除了Xcode中的链接,这解决了问题。谢谢你的帮助!你能分享一下你是如何做到这一点的吗?