如何解决 Xcode 10 中的错误:多个命令产生....../字体

joc*_*ers 4 xcode compiler-errors ios react-native

我有 React Native App。我安装了 react-native-vector-icons 库。在我在 Xcode 中收到此错误后:

多个命令产生“/Users/jocoders/Library/Developer/Xcode/DerivedData/openCalls-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts”:

  1. 目标“openCalls”(项目“openCalls”)具有从“/Users/jocoders/openCalls/node_modules/react-native-vector-icons/Fonts”到“/Users/jocoders/Library/Developer/Xcode/DerivedData/openCalls”的复制命令-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts'
  2. 目标“openCalls”(项目“openCalls”)具有从“/Users/jocoders/openCalls/node_modules/react-native-vector-icons/Fonts/Fonts”到“/Users/evgeniykireev/Library/Developer/Xcode/DerivedData”的复制命令/openCalls-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts'

Sam*_*m S 10

我只是在将react-native-vector-icons应用程序升级到 > 0.6 时使用 RN 0.61.4 和 Xcode 11.2.1遇到了同样的问题。我最终要做的就是转到Build Phases -> [CP] Copy Pod Resources -> Deleted references to react-native-vector-icons fonts。然后重建,每个人都跑得很好。我确实注意到字体已经在Resources左侧项目资源管理器的文件夹中。我还注释掉了# pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'Podfile 中的行并运行,pod install但不确定是否影响它。这只是一个补丁,但希望它有所帮助。

在此处输入图片说明


joc*_*ers 0

我检查了XCode错误中的所有链接,但没有发现任何重复的文件。

在此输入图像描述