【发布时间】:2019-12-03 06:01:09
【问题描述】:
这突然发生了,我不知道发生了什么。
我开始运行我的应用程序并收到此错误:
我相信它来自 react-native-vector-icons。
我尝试切换到旧版本的 react-native-vector-icons,但仍然收到相同的结果。
我也尝试卸载 react-native-vector-icons,但当我这样做时,我收到了编译错误。
** BUILD FAILED **
The following build commands failed:
CompileC /Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Intermediates.noindex/Pods.build/Debug-
iphonesimulator/RNVectorIcons.build/Objects-
normal/x86_64/RNVectorIconsManager.o
/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-
icons/RNVectorIconsManager/RNVectorIconsManager.m normal x86_64
objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
我现在很纠结。
编辑:
在我链接 react-native-vector-desing 并清除 build 文件夹后,我收到此错误:
Build system information
error: Multiple commands produce '/Users/lukeschoenberger/Documents/Programming/news-arg/test6/ios/build/test6/Build/Products/Debug-iphonesimulator/test6.app/AntDesign.ttf':
1) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/native-base/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
2) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
** BUILD FAILED **
【问题讨论】:
-
我认为出现此错误是因为您在文件中导入了 FontAwesome5Pro 图标。只需使用 FontAwsome5 图标就不会出现此错误。
标签: swift xcode react-native