简体   繁体   English

React Native IOS build clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

[英]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可能的工作

  1. Update React using react-native upgrade使用react-native upgrade更新 React

or或者

  1. Run from the project by opening from your project.xcworkspace通过从project.xcworkspace打开从project.xcworkspace

Xcode打开Melkana.xcworkspace而不是Melkana.xcodeproj

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 react-native ios 构建错误 - clang:错误:Z3175B426046787EECE7377387340B982 命令调用失败,退出代码1 - react-native ios build error - clang: error: linker command failed with exit code 1 (use -v to see invocation) Geofire(iOS)clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Geofire (iOS) clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令在删除AdMob后,在iOS应用程序中使用退出代码1(使用-v查看调用)失败 - clang: error: linker command failed with exit code 1 (use -v to see invocation) in iOS app after deleting AdMob Swift 2 IOS 9 = clang: 错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - Swift 2 IOS 9 = clang: error: linker command failed with exit code 1 (use -v to see invocation) 无法使用boost构建iOS项目:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Can't build iOS project with boost: error: linker command failed with exit code 1 (use -v to see invocation) 尝试构建存档Xcode时出错:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Error from trying to build archive Xcode: clang: error: linker command failed with exit code 1 (use -v to see invocation) xcode中的错误:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - error in xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5- clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation) 修复-Xcode 9.1-铛:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Fix - Xcode 9.1 - clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:设置cocoapods环境时,链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) when setting up cocoapods environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM