Xcode print variables not working

If you are not seeing the variables getting printed in the debug area or if you want to copy the value of the local variable to the clipboard then try this:

Go to Xcode >> View menu.

Click Debug Area >> Activate Console option.

That will open the Console at the bottom of the Xcode adjacent to your debug window.

Now right-click any local variable in Debug window and click “Print Description of…” option, that will print the variable’s value in the Console window of Xcode.