无法识别的字体系列“FontAwesome5Free-Solid”

sch*_*nbl 5 xcode swift react-native

这件事突然发生,我不知道发生了什么。

我开始运行我的应用程序并收到此错误:

在此输入图像描述

我相信它来自react-native-vector-icons。

我尝试切换到旧版本的react-native-vector-icons,但仍然收到相同的结果。

我还尝试卸载react-native-vector-icons,当我这样做时,我收到一个编译错误。

** BUILD FAILED **


The following build commands failed:
    CompileC /Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Intermediates.noindex/Pods.build/Debug-
iphonesimulator/RNVectorIcons.build/Objects-
normal/x86_64/RNVectorIconsManager.o 
/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-
icons/RNVectorIconsManager/RNVectorIconsManager.m normal x86_64 
objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Run Code Online (Sandbox Code Playgroud)

我现在很困惑。

编辑:

在链接react-native-vector-desing并清除构建文件夹后,我收到此错误:

Build system information
error: Multiple commands produce '/Users/lukeschoenberger/Documents/Programming/news-arg/test6/ios/build/test6/Build/Products/Debug-iphonesimulator/test6.app/AntDesign.ttf':
1) Target 'test6' (project 'test6') has copy command from 
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/native-base/Fonts/AntDesign.ttf' to 
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'

2) Target 'test6' (project 'test6') has copy command from 
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to 
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'

** BUILD FAILED **
Run Code Online (Sandbox Code Playgroud)

hon*_*lop 6

图标模块似乎未正确链接。

你可以试试react-native link react-native-vector-icons

如果这不是解决方法,

删除iOS文件夹下build文件夹中的所有项目。然后用 重建项目react-native run-ios