1
votes

As per this Apple article, I have set up my project to automatically code sign.

A Bot set to run a scheme using the "Release" configuration builds an archive which uploads to TestFlight fine (via pilot.)

A Bot set to run a scheme using the "Debug" configuration builds, but fails to upload to TestFlight because of a certificate error. Inspecting the .ipa, its embedded.mobileprovision contains a development certificate.

Why? What makes Xcode decide to use a Development certificate for Debug builds and a Distribution certificate for Release builds?

1
It does so with the team you select for the project I think. - NSNoob
The linked article says "Set the Code Signing Identity build setting: Set to iOS Developer for all build configurations in iOS targets.", which is what we have—even for Release. Yet the release Bot still builds an .ipa with the distribution cert. - Robert Atkins

1 Answers

0
votes

The debug builds use the iOS Team Provisioning Profiles. If you set the team on the Xcode portion of the Server app, it automatically downloads all the profiles to the right directory in your system for the bot to locate them. Otherwise you have to copy them manually to the /library/developer/xcodeserver/provisioning profile directory.

enter image description here