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
Xcode 10 Beta 5 — clang: error: linker command failed with exit code 1
提问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 上运行该应用程序时出现此错误。但是模拟器有效......请帮帮我!!!
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 上运行我的应用程序,我将非常感激
采纳答案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.tbd
and delete it.
App Targets - General -> Linked Frameworks and Libraries -> Find
libstdc++.6.0.9.tbd
and 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.tbd
in the "Link Binary With Libraries" fixed this for me
找到-l"stdc++.6.0.9"
“其他链接器标志”并将其删除并添加libc++.1.tbd
“链接二进制与库”为我解决了这个问题