10

My Xcode cannot po anything suddenly.

For example:

po param

error: expression failed to parse:
error: Couldn't realize type of self.

Every time I use po to print something in the console, it will show the errors above. This started happening one month ago.

JaredH
  • 2,338
  • 1
  • 30
  • 40
malcopolocei
  • 123
  • 1
  • 9

4 Answers4

5

I know this does not fix the problem, but meanwhile you can use v param to achieve the expected result.

https://stackoverflow.com/a/60064468/2347811

Javi
  • 71
  • 1
  • 4
1

Here is easy solution: Change Debug information Format for Debug to "DWARF" in Build Settings. It should be done for both TARGETS AND PROJECT. enter image description here

Change it back to "DWARF with DSYM File" when upload application on Appstore.

Zulqarnain Mustafa
  • 1,615
  • 2
  • 22
  • 25
0

for my case i just changed build configuration to debug build mode .

edit scheme -> Run -> info -> build configuration -> select Debug

nawaf
  • 21
  • 1
-4

well, you could click right button and choose "print..." at console.

malcopolocei
  • 123
  • 1
  • 9