Xcode 10 GM libstdc ++错误,无法在模拟器上运行 [英] Xcode 10 GM libstdc++ error, can't run on simulator

查看:57
本文介绍了Xcode 10 GM libstdc ++错误,无法在模拟器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试测试适用于iOS 12的应用程序.我有一个仅iPad的应用程序,该应用程序在Xcode 9下可以正常工作.当我尝试使用Xcode 10 GM为模拟器编译该应用程序时,出现以下警告:

I am trying to test my apps for iOS 12. I have a iPad only app that works fine under Xcode 9. When I try to compile it for the simulator with Xcode 10 GM, the following warning appears:

URGENT: building for iOS Simulator simulator, but linking against dylib (/usr/lib/libstdc++.6.0.9.dylib) built for macOS. Note: This will be an error in the future

它将生成,但是在运行时会崩溃,并显示以下消息:

It will build, but when running it crashes with the following message:

dyld: lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire in /Users/.... /.... xxx.app because dependent dylib #1 could not be loaded.

我什么都没做,第一次尝试就发生了.

I haven't done anything, it happened on the first try.

有什么想法吗?

推荐答案

从"OTHER_LDFLAGS"中删除了"/usr/lib/libstdc++.6.0.9.dylib",似乎还是可以的.

removed '/usr/lib/libstdc++.6.0.9.dylib' from the 'OTHER_LDFLAGS', seems to be fine again.

这篇关于Xcode 10 GM libstdc ++错误,无法在模拟器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆