Sometimes, when trying to print out a variable in the debugger, the following error message is displayed:
error: warning: :12:9: warning: initial
Cleaning the project and deleting derived data solved it for me.