【问题标题】:Redefinition of 'RCTLogLevel' error shows in xcode 8.2xcode 8.2 中显示“RCTLogLevel”错误的重新定义
【发布时间】:2017-06-26 23:53:01
【问题描述】:

我使用 react-native(0.40) 创建了 iOS 应用程序。但是我总是遇到类似 Redefinition of 'RCTLogLevel' 的错误。这里我附上了一张截图。请看一下。如何解决这个问题?

【问题讨论】:

  • 你能检查一下你现在使用的是什么版本的 react-native-vector-icons 吗?运行 React Native >=0.40 需要 v4.0.0。
  • 如何查看 'react-native-vector-icons' 版本?
  • 尝试运行 npm list --depth=0 并查找 react-native-vector-icons。

标签: ios xcode facebook react-native react-jsx


【解决方案1】:

升级 react-native-vector-icons 版本。

React Native 4.0 Breaking Changes iOS native headers moved

【讨论】:

  • $ npm install react-native-vector-icons --save $ react-native link this
  • 我使用以下命令来更新 'react-native-vector-icons' , npm install --save react-native-vector-icons@4.0
猜你喜欢
  • 1970-01-01
  • 2017-05-02
  • 1970-01-01
  • 2018-04-17
  • 2017-07-09
  • 1970-01-01
  • 2023-02-13
  • 2019-09-21
  • 1970-01-01
相关资源
最近更新 更多