The problem is related to some Xcode file or project setting becoming corrupt/broken and there's no other way to fix the problem other than to regenerate the project with Cmake. The problem occurs randomly but more likely to happen after Xcode update.