Since updating to Macos Catalina Xcode has been showing this problem.
I did some research and could not solve the problem. Worth noting is te program still runs and it builds successfully. It is just the live building that seems to be working faulty and "cin" and "cout" are not colored accordingly. After i restart my mac it works ok until I close the app and open it again. How do I fix this? It's driving me crazy!