[英]React Native IOS build clang: error: linker command failed with exit code 1 (use -v to see invocation)
While I'm trying to run the react-native ios application with command react-native run-ios.当我尝试使用命令 react-native run-ios 运行 react-native ios 应用程序时。 The Build goes failed and showing me error following:-
构建失败并显示以下错误:-
ld: warning: directory not found for option '-L/Users/User/Documents/react-test-app/ios/build/Build/Products/Debug-iphonesimulator/React' ld: library not found for -lRNSVG clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld:警告:找不到选项“-L/Users/User/Documents/react-test-app/ios/build/Build/Products/Debug-iphonesimulator/React”的目录 ld:找不到-lRNSVG clang 的库:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
** BUILD FAILED **
** 构建失败 **
The following build commands failed: Ld build/Build/Products/Debug-iphonesimulator/react-test-app.app/react-test-app normal x86_64 (1 failure)
以下构建命令失败:Ld build/Build/Products/Debug-iphonesimulator/react-test-app.app/react-test-app normal x86_64 (1 failure)
Installing build/Build/Products/Debug-iphonesimulator/react-test-app.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The bundle identifier of the application could not be determined.
安装 build/Build/Products/Debug-iphonesimulator/react-test-app.app 处理命令时遇到错误 (domain=NSPOSIXErrorDomain, code=22): Failed to install the required application The bundle identifier could not be the application决定。 Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
确保应用程序的 Info.plist 包含 CFBundleIdentifier 的值。 Print: Entry, ":CFBundleIdentifier", Does Not Exist
打印:条目,“:CFBundleIdentifier”,不存在
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/oldapollo.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist.
命令失败:/usr/libexec/PlistBuddy -c 打印:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/oldapollo.app/Info.plist 打印:条目,“:CFBundleIdentifier”,不存在。
Please Help Me Out To resolve this problem.请帮我解决这个问题。 Thank you in advance
先感谢您
Try the solutions here.尝试这里的解决方案。
https://github.com/facebook/react-native/issues/7308 https://github.com/facebook/react-native/issues/7308
Possible ones may work可能的工作
react-native upgrade
react-native upgrade
更新 React or或者
project.xcworkspace
project.xcworkspace
打开从project.xcworkspace
在Xcode
打开Melkana.xcworkspace
而不是Melkana.xcodeproj
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.