Welcome to the Treehouse Community
Looking to learn something new?
Scott Holmes961 Points
Xcode: No error displayed when altering a constant
In Xcode playgrounds, I now don't see red flags when I change a constant. e.g.
let x = 1
x = 2
// should display an error
>> changing x should give me an error, but no error shows in Xcode The issue only started yesterday- anyone else having issues with Xcode not displaying error warnings in a playground or project? -So far I restarted Xcode, the computer,and checked for updates.
When you go into the playground, are there values in the Playground output area to the right of the playground code?
You may need to go to "Editor" in the xcode bar at the top of the screen, and choose "Execute playground". If you have input the (intentionally wrong) code as above, the values to the right should be greyed out, and the error message you are hoping for should be on the left.
Is that of any help?
Same problem here. Editor, Execute Playground does not help. In Xcode 6.0.1 I have to have the Assistant Editor open to see the execution error. It does not give me a red error notification in the left hand gutter unless I introduce a syntax error.