【问题标题】:error: Multiple commands produce (after eject react-native)错误:产生多个命令(在弹出 react-native 之后)
【发布时间】:2021-04-21 05:03:25
【问题描述】:

我想更改应用程序名称,所以我更改了它并删除了 iOS 和 android 文件夹,然后我运行 react-native eject,然后我尝试构建项目,但我面临来自 vector-icon 的 16 个错误

我在 iOS/projectName/Info.plist 中有 UIAppFonts

<key>UIAppFonts</key>
<array>
    <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>Fontisto.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>

【问题讨论】:

    标签: ios xcode react-native react-native-vector-icons


    【解决方案1】:

    在 Xcode 中,在 Build Phases 选项卡中找到 Copy Bundle Resources 脚本,并查看字体文件是否在此处列出。如果是,将它们删除应该会有所帮助。

    【讨论】:

      【解决方案2】:

      我花了一段时间(我是 XCode 的菜鸟)才弄清楚 Marek Lisik 的答案,所以这里是他所说的步骤的图片。

      【讨论】:

        猜你喜欢
        • 2020-03-19
        • 2018-11-15
        • 2019-12-17
        • 1970-01-01
        • 1970-01-01
        • 2021-01-27
        • 2022-08-02
        • 2021-10-14
        • 2021-01-10
        相关资源
        最近更新 更多