my case, the Runner.xcodeproj file was broken by other commit; the error was thrown during code build.
use Xcode to open the project, you will see a Xcode complaining that unable to load the Runner.xcodeproj file.