[英]Build error in Xcode by react-native code
This is my error: 这是我的错误:
Build system information
error: Multiple commands produce '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf':
1) Target 'portalapp' (project 'portalapp') has copy command from '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/node_modules/native-base/Fonts/AntDesign.ttf' to '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf'
2) Target 'portalapp' (project 'portalapp') has copy command from '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/tanhaeirad/Project/Rahanj/RezasPortal/portalapp/ios/build/Build/Products/Debug-iphonesimulator/portalapp.app/AntDesign.ttf'
but my code run in simulator i code with react native and this error shown when i install react-native base 但是我的代码在模拟器中运行,我使用react native进行编码,并且在我安装react-native base时显示此错误
In Xcode, go to < one of the library target names > => Build Phases => Copy Bundle Resources and remove the font that's causing the issue. 在Xcode中,转到<库目标名称之一> => Build Phases =>复制捆绑资源,然后删除引起问题的字体。 This should ensure that it only gets copied into the app package once.
这应确保仅将其复制到应用程序包一次。 It probably doesn't matter which of those two libraries you remove it from.
您可以从这两个库中的哪一个中删除它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.