我们试图将react-native-vector-icons添加到我的应用程序中。
这就是我要做的:
yarn add react-native-vector-icons react-native link react-native-vector-icons的根内创建新组。
我将node_modules/react-native-vector-itens中的所有字体粘贴到文件夹中
info.plist文件中:UIAppFonts AntDesign.ttf Entypo.ttf EvilIcons.ttf Feather.ttf FontAwesome.ttf FontAwesome5_Brands.ttf FontAwesome5_Regular.ttf FontAwesome5_Solid.ttf Fontisto.ttf Foundation.ttf Ionicons.ttf MaterialCommunityIcons.ttf MaterialIcons.ttf Octicons.ttf SimpleLineIcons.ttf Zocial.ttf Zocial.ttf Octicons.ttf SimpleLineIcons.ttf Octicons.ttf SimpleLineIcons.ttf Octicons.ttf Octicons.ttf SimpleLineIcons.ttf MaterialCommunityIcons.ttf MaterialIcons.ttf Octicons.ttf SimpleLineIcons.ttf MaterialIcons.ttf Octicons.ttf SimpleLineIcons.ttf SimpleLineIcons.ttf Octicons.ttf SimpleLineIcons.ttf Zocial.ttf
cd ios -> pod install.yarn ios生成系统信息错误:多个命令生成'/Users/flavio.luiz/Library/Developer/Xcode/DerivedData/grdiariesapp-glxxnoufhzcqqqehxmwglijwtgap/Build/Products/Debug-iphonesimulator/grdiariesapp.app/FontAwesome5_Brands.ttf':1)目标'grdiariesapp‘(项目'grdiariesapp')有从'/Users/flavio.luiz/Documents/learning/grdiariesapp/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf’到'/Users/flavio.luiz/Library/Developer/Xcode/DerivedData/grdiariesapp-glxxnoufhzcqqqehxmwglijwtgap/Build的复制命令( /Products/Debug-iphonesimulator/grdiariesapp.app/FontAwesome5_Brands.ttf‘2)该命令依赖于目标'grdiariesapp’(项目‘grdiariesapp’)中的命令:脚本阶段“CP复制Pods Resources”
有人能帮忙吗?
发布于 2021-04-14 14:23:56
对于< 0.60版本,您应该手动放置文件。
版本> 0.60自动收费将完成工作,所以在您的情况下,您复制它,所以只要删除您插入的文件,所有的工作将如预期。
https://stackoverflow.com/questions/67027658
复制相似问题