React Native 无法识别的字体系列“Lato-Regular”

tv6aics1  于 2023-02-13  发布在  React
关注(0)|答案(1)|浏览(189)

我开始得到这个错误时,建立我的项目。“无法识别的字体家族'Lato-Regular'“我不知道如何解决它,因为“Lato-Regular”不是一个字体,我在我的项目中使用的所有..我甚至做了搜索,在我的整个项目中,这种字体没有使用或提到任何地方。我清理了我的构建文件夹,并尝试将其添加到我的信息文件,看看这是否会解决这个问题。我已经花了几天时间来修复这个问题。这个问题是在我修改了我的播客文件之后开始的。具体来说:

installer.pods_project.targets.each do |target|
      if target.name == "React-Core.common-AccessibilityResources"
        target.remove_from_project

我的项目将无法存档没有它。所以删除它不是一个选项。
这是我的信息列表

<key>UIAppFonts</key>
    <array>
        <string>Kufam-SemiBoldItalic.ttf</string>
        <string>Lato-Bold.ttf</string>
        <string>Lato-BoldItalic.ttf</string>
        <string>Lato-Italic.ttf</string>
        <string>Lato-Regular.ttf</string>
        <string>AntDesign.ttf</string>
        <string>Entypo.ttf</string>
        <string>EvilIcons.ttf</string>
        <string>Feather.ttf</string>
        <string>FontAwesome.ttf</string>
        <string>FontAwesome5_Brands.ttf</string>
        <string>FontAwesome5_Regular.ttf</string>
        <string>FontAwesome5_Solid.ttf</string>
        <string>Foundation.ttf</string>
        <string>Ionicons.ttf</string>
        <string>MaterialCommunityIcons.ttf</string>
        <string>MaterialIcons.ttf</string>
        <string>Octicons.ttf</string>
        <string>SimpleLineIcons.ttf</string>
        <string>Zocial.ttf</string>
    </array>
57hvy0tb

57hvy0tb1#

我能够通过添加lato-regular.tff到我的目标来修复这个问题。这可能与我安装的一个最近的模块真棒字体有关。我必须进一步挖掘,但现在这是解决方案。

相关问题