简体   繁体   English

通过本机代码在Xcode中生成错误

[英]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.

相关问题 尝试使用Xcode构建应用程序时出现React-native错误 - React-native Error while trying to build app using Xcode Xcode发行版中的Bundlejs错误(react-native) - Bundlejs error on release build in Xcode (react-native) 无法在Xcode上构建React-Native应用 - Cannot build react-native app on xcode 响应本机Xcode构建错误 - React native Xcode build error 无法在Xcode中建立我的新React-Native项目-获取配置文件置备错误 - Unable to build my new react-native project in xcode - getting profile provisioning error react-native build失败:Xcode 7.2.1,react-native cli v:2.0.1(MacOSX 10.10.5) - react-native build failed: Xcode 7.2.1, react-native cli v : 2.0.1 (MacOSX 10.10.5) Xcode 9.2在使用react-native成功构建时崩溃 - Xcode 9.2 crashing on successful build with react-native 无法使用 xcode 方案和配置构建 react-native 应用程序 - Can't build react-native app with xcode scheme and configuration 使用 React-native init,无法在 Xcode 中构建新的 iOS 应用程序,构建错误“ld: library not found for -lDoubleConversion - using React-native init, a new iOS app can't build in Xcode, build error 'ld: library not found for -lDoubleConversion react-native 构建失败,错误代码为 65 和 ___darwin_check_fd_set_overflow - react-native build failing with error code 65 and ___darwin_check_fd_set_overflow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM