I have working on an Xcode project where things were going correctly. Then, out of the blue, Xcode started behaving strangely. I introduced an error in the project, but Xcode says: Build succeeded! Then, I added some random words in the code, still Xcode compiled it correctly.
What could be the reason for Xcode to malfunction? I also tried both the answers mentioned in this post, but to no avail.