With the new Xcode 4, I imp开发者_运维技巧orted a Xcode 3 project. I used to have three different sets of build settings, for "Debug", "Ad hoc" and "Store". Now, I don't find them anywhere in the new interface. The settings (like code signing options) are still there in the build settings, but how do I select one or the other?
You can edit scheme and assign different configuration for different actions. Adhoc configuration for archiving for example.
Click 'Scheme' button and select 'Edit scheme'. You'll see 'Archive' item which allow you to change configuration for archiving application.
In Xcode4 you basically create a build and sign it afterwards, while in Xcode3 you had to select this upfront.
Archive your app (Product > Archive) and in the Organizer select the Archives tab. Here you can select an archived app and when you share it, you can select a provisioning profile (for instance your ad hoc provisioning profile) to sign it with.
精彩评论