I tried to generate common code when I have both Android and iOS platforms and I was unable to do so even with the above mentioned workaround. Commented in the original GitHub with more details, but was unable to solve code generation in this particular setup.