首页 > 解决方案 > 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”,不存在。

请帮帮我解决这个问题。先感谢您

标签: iosreact-native

解决方案


在这里尝试解决方案。

https://github.com/facebook/react-native/issues/7308

可能的可能有效

  1. 使用更新反应react-native upgrade

或者

  1. 通过从您的项目中打开来运行项目project.xcworkspace

推荐阅读