使用RN和react-native-vector-icons,尝试将图标加载到项目中。我在Xcode中创建了一个Fonts文件夹,并在其中添加了字体。
现在,当我构建XCode项目时,对于添加的每个字体文件都会出现此错误。
Multiple commands produce '/Users/me/Library/Developer/Xcode/DerivedData/project-cohnateufmzaxybepprrejdyjhqe/Build/Products/Debug-iphonesimulator/my.app/FontAwesome.ttf':
1) Target 'collectionmobile' (project 'collectionmobile') has copy command from '/Users/me[![enter image description here][1]][1]/project/ios/FontAwesome.ttf' to '/Users/me/Library/Developer/Xcode/DerivedData/project-unique/Build/Products/Debug-iphonesimulator/my.app/FontAwesome.ttf'
2) That command depends on command in Target 'collectionmobile' (project 'collectionmobile'): script phase “[CP] Copy Pods Resources”
对于每种字体以及Info.plist,我都会收到此错误。
但是您可以看到,我没有多次出现这些文件。
实际上,我什至没有它声称要查找的文件。
对此我该怎么办?我尝试交换到旧版构建系统,但这确实使我的整个项目搞砸了。谢谢!