简体   繁体   English

Xcode 10 beta错误:链接器命令失败,退出代码为1

[英]Xcode 10 beta error: linker command failed with exit code 1

This is the complete error: 这是完整的错误:

ld: library not found for -lstdc++.6 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea what is this about, I'm using Xcode 10 beta, and iOS 11.4.1, I have no "pods" project or anything like that, when I try to run the command: 我不知道这是什么,我正在使用Xcode 10 beta和iOS 11.4.1,当我尝试运行命令时,我没有“pods”项目或类似的东西:

pod install

I get the command not found. 我找不到命令。

I'm not using any additional tools or anything, so I'm only using npm and xcode command line commands. 我没有使用任何其他工具或任何东西,所以我只使用npm和xcode命令行命令。

Thanks. 谢谢。

(I post the solution here for all those who googled "cocoapods lstdc xcode 10" since this is the first page that hits.) (我在这里发布解决方案,所有用谷歌搜索“cocoapods lstdc xcode 10”,因为这是第一页。)

If you are using cocoa pods and got a similar error then the solution is to delete -l"stdc++.6" from your xcconfig files. 如果您正在使用可可豆荚并得到类似的错误,那么解决方案是从您的xcconfig文件中删除-l"stdc++.6" Now build and run. 现在构建并运行。 Xcode10 build should succeed now :) Xcode10构建现在应该成功:)

Cocoa pods is for some reason adding stdc so it gets linked, but that is not be needed and Xcode10 does not have that library anymore. 可可豆荚由于某种原因添加stdc,因此它被链接,但这不是必需的,Xcode10不再有该库。

在此输入图像描述

Libstdc++ was deprecated, the support was removed from the iOS 12 simulator (not for device). Libstdc ++已被弃用,支持已从iOS 12模拟器中删除(不适用于设备)。

One of the library in the pod file have a dependency builded with libstdc++, you can try to find a more recent version builded with the libc++. pod文件中的一个库具有libstdc ++构建的依赖项,您可以尝试查找使用libc ++构建的更新版本。

暂无
暂无

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

相关问题 如何解决Xcode 10 Beta中的错误“链接器命令失败,退出代码1(使用-v查看调用)”? - How to solve an error “linker command failed with exit code 1 (use -v to see invocation) ”in Xcode 10 beta? 叮当:错误:链接器命令失败,退出代码为1(使用-v查看调用)Xcode 10,Xcode 10.1 Beta,Swift 4.2 - Clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta, Swift 4.2 解析应用无法在实际设备上运行“ clang:错误:链接器命令失败,退出代码为1” Swift 2.0 Xcode 7 beta 6 - Parse app not working on real device “clang: error: linker command failed with exit code 1” Swift 2.0 Xcode 7 beta 6 铛:错误:链接器命令失败,退出代码为1,Xcode链接器错误 - clang: error: linker command failed with exit code 1, Xcode Linker Error Xcode 10 iOS OpenCV链接器命令失败,退出代码为1 - Xcode 10 iOS OpenCV linker command failed with exit code 1 xcode错误:链接器命令失败,退出代码为1 googletoolboxmac - xcode error: linker command failed with exit code 1 googletoolboxmac Xcode 8.3存档错误:链接器命令失败,退出代码为1 - Xcode 8.3 Archive error: Linker command failed with exit code 1 链接器命令失败,Xcode项目中出现退出代码1错误 - Linker command failed with exit code 1 error in Xcode project Xcode构建错误链接器命令失败,退出代码为1 - Xcode build error linker command failed with exit code 1 Unity,Xcode和Clang:错误:链接器命令失败,退出代码为1 - Unity, Xcode and clang: error: linker command failed with exit code 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM