React-native-vector-icons ios错误

问题描述 投票:1回答:2

我收到以下错误:

RNVectorIconsManager不可用,您是否已将库添加到项目中并与libRnVectorIcons.a链接

在npm安装React-native-vector-icons并运行react-native链接之后。我正在使用react-native v0.42,react-native-vector-icons v4.0.0和Xcode v8.2.1。我检查过plist,它包含了数组中的所有字体。和libRNVectorIcons.a显示在构建阶段,但它是红色的。看图像:enter image description here

ios react-native
2个回答
0
投票

尝试在终端中运行react-native link react-native-vector-icons


0
投票

破碎的文件:https://github.com/facebook/react-native/blob/master/local-cli/core/fixtures/files/package.json

尝试运行react-native link

或者只是删除上面损坏的文件并重新启动您的xcode。

© www.soinside.com 2019 - 2024. All rights reserved.