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.

Accepted Reply

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).

Replies

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).