gpt4 book ai didi

ios - LLDB:无法 IRGen 表达式

转载 作者:IT王子 更新时间:2023-10-29 07:56:12 25 4
gpt4 key购买 nike

当我运行单元测试并想要调试某些东西时,我设置了一个断点并键入例如“po myVariable”。我从 LLDB 得到的响应是:

error: Couldn't IRGen expression, no additional error

例子:

我在这里定义了最小的小单元测试:

class MyExampleTests: XCTestCase {
func testLLDB() {
let world = "World"
print("Breakpoint goes here")
print("Hello \(world)")
}
}

我在“Breakpoint goes here”中设置断点,当我运行时,我执行“po world”:

(lldb) po world
error: Couldn't IRGen expression, no additional error

关于如何让它评估我的表达式有什么建议吗?

最佳答案

我在使用 Carthage 框架时遇到了同样的问题,通过删除项目根目录中的 Carthage 文件夹并强制 Carthage 从源代码重建框架,让 LLDB 调试器再次工作:

carthage update --platform iOS --no-use-binaries

关于ios - LLDB:无法 IRGen 表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43977271/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com