in Xcode 4, if you archive the application that it is signed with the provisioning profile that you specified for use in its build configuration. Most likely, the settings migrated from the Xcode 3 project.
An archived application can be written off with a different condition profile later (although the organizer or command line), so in a sense, yes, they do not depend on the provisioning profile.
Two building management offers for AdHoc and AppStore:
1) The first uses Xcode 4 schemes and creates new schemes for AdHoc and AppStore
In the "Schema" menu: "Edit Scheme" β "Duplicate Scheme", then in the archive you can select the desired assembly configuration (AdHoc, AppStore, etc.), you can call this scheme AdHoc, AppStore, also suitable. When you want to create for release, simply select the target scheme and it will sign it with the appropriate provisioning profile from the assembly configuration.
2) Save 1 scheme, remove code signing from your build configurations and sign applications only with the help of the organizer after archiving.
richerd
source share