title: iOS Code Signing Identity
body: <p>My Xcode 4.6 iOS project has "PROJECT" and "TARGETS" sections, each of which has a "Debug" and "Release" area under "Code Signing Identity" with an "Any iOS SDK" entry.</p>
  
  <ol>
  <li>Currently, I specify my Developer or Distribution provisioning
  profile in all four of the slots under PROJECT and TARGET. I believe
  that each provisioning profile really only needs to be placed in one
  position.</li>
  <li>Whenever I update a provisioning profile because it is expiring, I
  am adding additional development devices, or I am adding additional
  AdHoc test devices, it is always painful. Xcode never allows me to
  simply choose "iPhone Developer". I always have to navigate to the
  correct provisioning profile by name. Furthermore, I have to delete
  the old provisioning profiles before I import the new ones,
  otherwise the old ones will continue to get used.</li>
  </ol>
  
  <p>It all looks something like this:</p>
  
  <pre><code>PROJECT
      myProject
          Code Signing
              Code Signing Identity
                  Debug               iPhone Developer
                      Any iOS SDK     iPhone Developer
                  Release             iPhone Distribution
                      Any iOS SDK     iPhone Distribution
  TARGET
      myTarget
          Code Signing
                  Debug               iPhone Developer
                      Any iOS SDK     iPhone Developer
                  Release             iPhone Distribution
                      Any iOS SDK     iPhone Distribution
  </code></pre>
  
  <p>So, here are my summarized questions:</p>
  
  <ol>
  <li>On which line should I specify the provisioning profile?</li>
  <li>What is the best way to import an updated provisioning profile into
  Xcode?</li>
  </ol>