The solutions here will also fix the bug where you see error: :1:1: error: use of unresolved identifier every time you try to po a variable.
For me the solution was to go to Build Settings and search for Optimization Level and make sure each Debug setting was set to None.