Version numbering for qa and prod

Our app has the backend api gateway in it's configuration. Because of this, we have to have separate builds for QA and Prod. We run both builds through TestFlight.

For example: version 1.0.1 (1) points to qa version 1.0.2 (2) points to qa version 1.0.2 (3) points to prod

This is very confusing and I don't want to risk accidentally pushing a QA version to the app store. Is there a way, perhaps through version numbers to differentiate our QA builds from Prod? Is there a better way we could be doing this? Any suggestions would be appreciated.

Thank you

I decided to add a code to the build number. 1=dev, 2=qa, and 3=prod. For example, 1.0.2 (3.2) is QA. 1.0.2 (3.3) is prod.

I'm still open to suggestions if anyone has better ideas. Thank you.

Version numbering for qa and prod
 
 
Q