Swift Xcode项目中LLDB引发自动导入错误 [英] LLDB throwing auto import error in Swift Xcode project

查看:78
本文介绍了Swift Xcode项目中LLDB引发自动导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Xcode中的调试器在我的一种方法中四处摸索.该应用程序非常简单,目前仅是一个示例类.当我设置一个断点并运行时,LLDB调试器窗格将按预期在Xcode中打开.但是,如果我尝试执行打印命令以在我的方法中四处摸索,则会收到以下错误:

I'm trying to use the debugger in Xcode to poke around in one of my methods. The app is pretty bare bones, just one example class at this point. When I set a breakpoint and run, the LLDB debugger pane opens in Xcode as expected. However, if I try to execute a print command to poke around in my method, I get the following error:

Error in auto-import:
Failed to load linked library Cocoa of module ExampleAppTests - errors:
Looking for "@rpath/Cocoa.framework/Cocoa", error: not a string object
Looking for "/Users/Elliot/Library/Developer/Xcode/DerivedData/ExampleApp-aqpflidffjffyzdxfjdfbjijvsxq/Build/Products/Debug/Cocoa.framework/Cocoa"
,    error: not a string object
Looking for "/BinaryCache/arclite/arclite-49.1~7/Symbols/BuiltProducts/Cocoa.framework/Cocoa"
,    error: not a string object
Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Library/PrivateFrameworks/Cocoa.framework/Cocoa"
,    error: not a string object
Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Library/Frameworks/Cocoa.framework/Cocoa"
,    error: not a string object
Looking for "/Applications/Xcode6-Beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/Cocoa.framework/Cocoa"
,    error: not a string object
Looking for "/Applications/Xcode6-Beta6.app/Contents/SharedFrameworks/Cocoa.framework/Cocoa"
,    error: not a string object

如果输入repl并执行命令,则会出现相同的错误.

I get the same error if I enter the repl and execute a command.

推荐答案

来自Crashlytics的Hemal!我们就每个人都看到的行为与Apple取得了联系,他们确认这是Swift中LLDB中的错误.关于何时修复该问题,我们还没有确定的时间表,但是正在跟踪的错误报告是18256812.

Hemal from Crashlytics here! We reached out to Apple on the behavior that everyone is seeing and they confirmed it's a bug in LLDB around Swift. We don't have an firm timeline yet as to when it will be fixed, but the bug report that it's being tracked in is 18256812.

这篇关于Swift Xcode项目中LLDB引发自动导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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