Xcode will archive but Xojo fails with "A distribution profile is required when building for the app store."

I have 2 Dev Machines one builds Apps fine the other use to but no longer does giving the A development profile is required when building an iOS application.
Are the Development profile Machine specific or can you copy the certificates from one machine to the other? Still pretty confused even after reading all the help blogs. Each year I seem to get it all working and then one of the certificates expires each year and it all goes belly up.
I used your Profile lister and I can see multiple profiles for the Apps but not sure which to delete.

1 Like

Development profiles are user specific assuming that you copied the development certificates (private and public keys) correctly from machine to machine. That is, you would export it from the keychain on the first machine as a .p12 certificate with a password and import it into the second.

Thanks Greg. I thought I did, but that seems to be the only thing left that could be causing the problem I think. I also can’t figure out from Apple Developer which cert belongs to which computer, so I think my next step is to delete all the certs and recreate them.

Hi Greg (et al). I finally resolved this. Thank you very much again for all your help. The crux was in my haste deleting certs, profiles, etc, I also deleted the App with the project’s identifier in App Store Connect. Apple will not allow you to re-use the same identifier so I changed it, followed a post I believe you had put up in the past https://developer.apple.com/forums/thread/99646 and all went well. I did have to turn OFF Automatically manage signing from Releases in Xcode and select the Profile Xcode had created. I am now anxiously awaiting approval from Apple :slight_smile:

2 Likes

Another useful link is… https://documentation.xojo.com/topics/application_deployment/mobile/deploy_to_device_with_free_xcode_provisioning_profile.html#xcode-configuration