无法在xcode6 beta 6 osx swift项目中打印对象('po'):(自动导入错误:无法从AST上下文获取模块'__ObjC') [英] unable to print object ('po') in xcode6 beta 6 osx swift project: (Error in auto-import: failed to get module '__ObjC' from AST context)

查看:109
本文介绍了无法在xcode6 beta 6 osx swift项目中打印对象('po'):(自动导入错误:无法从AST上下文获取模块'__ObjC')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在xcode 6 beta 6 OSX Swift项目中打印对象(po命令)会导致此错误消息:

An attempt to print object (po command) in xcode 6 beta 6 OSX Swift project results in this error message:

(lldb) po managedObject
error: Error in auto-import:
failed to get module '__ObjC' from AST context

在这种情况下,所讨论的对象是NSManagedObject的实例.

In this case the object in question is an instance of NSManagedObject.

关于如何帮助自动导入使__ObjC module进入LLVM抽象语法树上下文的任何建议?

Any advice on how to help auto-import in getting __ObjC module into LLVM Abstract Syntax Tree context?

推荐答案

从Xcode 6.1开始,如果您两次尝试执行po命令,它将在第二次尝试中起作用.对于每个新的调试会话,第一个po命令始终将失败,但是后续调用可以正常工作.

As of Xcode 6.1 if you attempt the po command twice it will work on the second attempt. The first po command will always fail for each new debugging session but subsequent calls work.

这篇关于无法在xcode6 beta 6 osx swift项目中打印对象('po'):(自动导入错误:无法从AST上下文获取模块'__ObjC')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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