Xcode 10, LLDB: Couldn't IRGen expression

2019-04-08 18:13发布

Using Xcode 10, when I stop my app using a breakpoint and try to print the content of an object in the Console, I obtain:

"Couldn't IRGen expression, no additional error"

However, I can see the value of the object in the Variables View panel.

enter image description here

How can I make it evaluate my expression instead?

3条回答
男人必须洒脱
2楼-- · 2019-04-08 18:16

Thanks. I solved with rebuild carthage framework like imtx.me/archives/2719.html

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

查看更多
来,给爷笑一个
3楼-- · 2019-04-08 18:21

In lldb as a workaround you can use:

fr v productVersion
fr v productBuild

which prints local variable type and address from current call stack frame.

Apple documentation for these kind of lldb capabilities: https://developer.apple.com/library/archive/documentation/General/Conceptual/lldb-guide/chapters/C5-Examining-The-Call-Stack.html

查看更多
一夜七次
4楼-- · 2019-04-08 18:24

I had defined as build system: "Legacy Build System", I changed it to "New Build System", then I build the project, and then I put it back as "Legacy Build System" and it worked again.

For to change the build mode: File->Workspace settings...->Build System

查看更多
登录 后发表回答