Quite often when I code in Xcode, I type no-break space (Option + Space / Option + Shift + Space) especially before or after square brackets or curly braces. This causes Xco
Alt+Space command creates a special hidden character in Xcode files. You can see details of bug here.
For more details about solution checkout my answer on Xcode - Invalid character in source file (Replace “ ” with “ ”)