swift - 无法识别的字体系列“FontAwesome5Free-Solid”
问题描述
这突然发生了,我不知道发生了什么。
我开始运行我的应用程序并收到此错误:
我相信它来自 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)
我在这一点上很困。
编辑:
在我链接 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 **
解决方案
图标模块似乎没有正确链接。
你可以试试react-native link react-native-vector-icons
如果这不是解决方法,
删除 iOS 文件夹下 build 文件夹中的所有项目。然后用react-native run-ios
.
推荐阅读
- asp.net-core - 如何在 ASP.NET Core Web 应用程序中添加 API
- android-studio - 如何在 M1 Mac 上运行 Android Studio 模拟器?
- asp.net-mvc-5 - .NET Core MVC 5 Windows 身份验证
- python - 根据条件打印列表中的元素
- jupyter-notebook - Jupyter Notebook 打开时做一些时髦的事情
- python - tf.keras 模型到 coreml 模型,不支持 BatchNormalization
- spring-boot - EntityGraph 进行两个 sql 查询
- python - 四面体和三角形网格的交点
- php - 如何创建自定义分类法,我可以在其中为该特定分类法选择类别
- asp.net-mvc - (错误 404)无法使用 @addTagHelper *、Microsoft.AspNetCore.Mvc.TagHelpers 找到此页面