How to change bundle version in xcode?

When uploading to TestFlight we get the following error in Transporter:

The provided entity includes an attribute with a value that has already been used (-19232) The bundle version must be higher than the previously uploaded version: ‘1’. (ID: 58c5b5f4-3106-484d-bee6-44b0c1826686)

It seems to be that because there is already a build 1 in TestFlight iOS builds, we need the number to be higher than one to upload.

Here is where we have the Version and Build set:

When we archive the project, it still shows Version 1 for the archive.

I've also seen other people experience this same issue with no straight answers.

Is this an xcode bug or am I missing something?

How to change bundle version in xcode?
 
 
Q