Xcode 10 Beta 5 — clang:错误:链接器命令失败,退出代码为 1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51619799/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:43:20  来源:igfitidea点击:

Xcode 10 Beta 5 — clang: error: linker command failed with exit code 1

swiftxcodecocoapodslinker-errorsxcode10

提问by Luke Pistrol

Can anybody help me out? Everything worked fine on my project but after updating to Xcode10 Beta5 I'm getting this error when trying to run the App on my iPhone. Simulator however works… Please Help me!!!

有人可以帮我吗?在我的项目上一切正常,但在更新到 Xcode10 Beta5 后,当我尝试在我的 iPhone 上运行该应用程序时出现此错误。但是模拟器有效......请帮帮我!!!

enter image description here

在此处输入图片说明

I already did a web search on this problem and found thisthread. I tried all answers but none worked..

我已经对这个问题进行了网络搜索并找到了这个线程。我尝试了所有的答案,但没有一个奏效..

If you had this problem I would be very very thankful if you can help me running my app on my iPhone again

如果您遇到此问题,如果您能帮助我再次在 iPhone 上运行我的应用程序,我将非常感激

These are the pods I've integrated: enter image description here

这些是我集成的豆荚: 在此处输入图片说明

and this is my pod file: enter image description here

这是我的 pod 文件: 在此处输入图片说明

采纳答案by Luke Pistrol

Ok.. It turned out that something in Fabric and/or Crashlytics was wrong. Since it's not essential for the app I tried to remove both pods and voila it builds and runs.

好的.. 结果是 Fabric 和/或 Crashlytics 中的某些内容是错误的。由于它对应用程序不是必需的,我尝试删除两个 pod,瞧它构建和运行。

回答by Nacho González Miró

"libstdc++.6.0.9.tbd" is deprecated in iOS 12. In order to solve this, try to go to your

“libstdc++.6.0.9.tbd”在 iOS 12 中被弃用。为了解决这个问题,尝试去你的

App Targets - General -> Linked Frameworks and Libraries -> Find libstdc++.6.0.9.tbdand delete it.

App Targets - General -> Linked Frameworks and Libraries -> Find libstdc++.6.0.9.tbdand delete it。

Then I added "libc++.tbd" and now you will be able to compile your project. Hope It helps.

然后我添加了“libc++.tbd”,现在您将能够编译您的项目。希望能帮助到你。

回答by user1232690

Finding -l"stdc++.6.0.9"in the "Other Linker Flags" and removing it and adding libc++.1.tbdin the "Link Binary With Libraries" fixed this for me

找到-l"stdc++.6.0.9"“其他链接器标志”并将其删除并添加libc++.1.tbd“链接二进制与库”为我解决了这个问题

回答by iosMentalist

Go to Pods folder in the Project :

转到项目中的 Pods 文件夹:

Pods/Pods-[Project].xcconfig

Pods/Pods-[项目].xcconfig

and remove the libaray

并删除 libaray

enter image description here

在此处输入图片说明