ios - React Native IOS build clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
问题描述
当我尝试使用命令 react-native run-ios 运行 react-native ios 应用程序时。构建失败并显示以下错误:-
ld:警告:找不到选项'-L/Users/User/Documents/react-test-app/ios/build/Build/Products/Debug-iphonesimulator/React'的目录ld:找不到-lRNSVG clang的库:错误: 链接器命令失败,退出代码为 1(使用 -v 查看调用)
** 构建失败 **
以下构建命令失败:ld build/Build/Products/Debug-iphonesimulator/react-test-app.app/react-test-app normal x86_64 (1 failure)
安装 build/Build/Products/Debug-iphonesimulator/react-test-app.app 处理命令时遇到错误 (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application 应用程序的包标识符不能是决定。确保应用程序的 Info.plist 包含 CFBundleIdentifier 的值。打印:条目,“:CFBundleIdentifier”,不存在
命令失败:/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/oldapollo.app/Info.plist 打印:条目,“:CFBundleIdentifier”,不存在。
请帮帮我解决这个问题。先感谢您
解决方案
在这里尝试解决方案。
https://github.com/facebook/react-native/issues/7308
可能的可能有效
- 使用更新反应
react-native upgrade
或者
- 通过从您的项目中打开来运行项目
project.xcworkspace
推荐阅读
- javascript - 如何从 CRUD 应用程序中编辑和删除单个项目
- html - 所有屏幕尺寸的响应式 iFrame 高度
- intellij-idea - 使用 JetBrains IntelliJ IDEA 或其他工具的多语言项目
- c# - 尝试调用过程并传递参数获取错误
- jquery - 数据表布局问题 - 按钮和下拉菜单
- python - 将 json 导入 Postgres 时出现编码问题
- r - 使用 r 中的参数模型预测跟进时间
- typescript - 在 WebStorm 2018.2.5 中看不到 TypeScript 工具栏
- javascript - 通过 JSON 移动数据的目的
- ruby-on-rails - 如何在 `select_tag` 中显示特定值?