Some context.
A developer in the team using XCode 8 has archived and exported (actually expoterd an ipa though I think this is irrelevant) an iOS app using the automatic provisioning settings in XCode 8.
I would like to now submit our app to the app store.
If I go through the archive process with the automatic settings, XCode creates a NEW provisioning profile and invalidates the existing one.
How can I continue to use the automatic features of XCode 8 while also re-using the provisioning profile already created?
My aim is to simply package an app to the app store using an existing profile. Or rather, package an app WITHOUT invalidating an existing profile.
Is this possible?
It can be done only if you still have the certificate with the private key for signing the package.
If it is available then you have to add it to your Mac using the Keychain Access tool.
As soon as you add the certificate then you can use the existing profile for signing the package.
If the certificate is no more available then you can modify the existing profiles on Apple Dev site in order to use a brand new certificate generated following the step by step procedure available on the iOS Certificates section of the Apple Dev site. In this case you have to re-download the provisioning profiles in Xcode settings.