Cannot open source file name.generated.hc

It’s probably because of null accessing somewhere in your code. Please refer to my other answer here where I provide some guidelines and tips on how to address these types of errors.