[英]React-native-vector-icons ios error
I get the following error: 我收到以下错误:
RNVectorIconsManager not available, did you add library to your project and link with libRnVectorIcons.a
RNVectorIconsManager不可用,您是否已将库添加到项目中并与libRnVectorIcons.a链接
after npm installing the React-native-vector-icons and running react-native link. 在npm之后安装React-native-vector-icons并运行react-native链接。 I am using react-native v0.42, react-native-vector-icons v4.0.0 and Xcode v8.2.1.
我正在使用react-native v0.42,react-native-vector-icons v4.0.0和Xcode v8.2.1。 I have checked plist and it has all the fonts in array.
我检查过plist,它包含了数组中的所有字体。 and libRNVectorIcons.a is showing under build phases but it is red.
和libRNVectorIcons.a显示在构建阶段,但它是红色的。 see image:
看图像:
尝试在终端中运行react-native link react-native-vector-icons
。
The broken file: https://github.com/facebook/react-native/blob/master/local-cli/core/ fixtures /files/package.json 破碎的文件: https : //github.com/facebook/react-native/blob/master/local-cli/core/ fixtures /files/package.json
Try running react-native link
尝试运行
react-native link
or simply remove the above broken file and restart your xcode. 或者只是删除上面损坏的文件并重新启动您的xcode。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.