首页 > 解决方案 > 备用临时上下文中的 Swift 错误:错误:加载模块“AppName”失败

问题描述

当我在代码中添加断点时,我尝试了po一些东西,lldb我得到了这个错误一次,它在再次打印变量后消失了。

warning: Swift error in fallback scratch context: error: failed to load module 'AppName'


note: This error message is displayed only once. If the error displayed above is due to conflicting
search paths to Clang modules in different images of the debugged executable,
this can slow down debugging of Swift code significantly,
since a fresh Swift context has to be created every time a conflict is encountered.

标签: swiftxcode

解决方案


推荐阅读