DerFlickschter
DerFlickschter

Reputation: 1059

Xcode: Archive Has Incorrect Bundle Id and Provisioning Profile During Validation

I have one Xcode project that has 3 different configurations spread across 6 schemes as follows:

  1. Debug
  2. Config1Debug
  3. Config2Debug
  4. Release
  5. Config1Release
  6. Config2Release

Each Scheme:

I would like to put the 3 release configurations onto the TestFlight/App Store as separate applications.

When running on a simulator or local iPhone using the Debug Schemes, everything works properly and 3 different applications run.

My problem is that when I archive the release schemes and then try to validate, the Bundle ID and the provisioning profile defaults to the "Release" scheme regardless of which scheme I am archiving. But the display name updates to the proper display name of the scheme.

My question is why is the display name properly updating while the Bundle ID and the provision profile defaulting to the "Release" scheme and how can I get the proper Bundle Id and Provisioning Profile to appear when doing validation?

Things I Have Tried

Upvotes: 4

Views: 2846

Answers (1)

DerFlickschter
DerFlickschter

Reputation: 1059

Found the solution here. Super simple can't believe I overlooked it. My schemes were only set to use the various configurations on Run. Once I edited the schemes and set Archive to use the proper config instead of Release, it worked fine.

Upvotes: 6

Related Questions