简体   繁体   中英

error: Multiple commands produce (after eject react-native)

I wanted to change the application name so I changed it and deleted the iOS & android folders then I run react-native eject then I tried to build the project but I am facing 16 error from vector-icon

在此处输入图像描述

and I have the UIAppFonts in the iOS/projectName/Info.plist

<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>

In Xcode, find the Copy Bundle Resources script in Build Phases tab, and see if the font files are listed there. If they are, removing them there should help.

It took me a while (I'm a noob to XCode) to figure out Marek Lisik's answer so here is a picture of the steps he said. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM