How to make Xcode use the correct configuration when archiving a Target

My Mac app has two Targets. When I attempt to Archive the second Target, Xcode always uses the configuration info for the first Target (Bundle ID, Version, and Build) even though I have selected the second Target.

By configuration I mean the "General" options displayed when clicking on the project name in the Project Navigator.

Answered by carlfromtucson in 633974022
I was using the wrong scheme (whatever that is). To set the right scheme, use the Scheme menu (just to the right of the square Stop button on the menu bar).
Accepted Answer
I was using the wrong scheme (whatever that is). To set the right scheme, use the Scheme menu (just to the right of the square Stop button on the menu bar).
How to make Xcode use the correct configuration when archiving a Target
 
 
Q