title: xcode 4.2, code signing for distribution
body: <p>I have finished coding my app and have spent the last 2-3 days on figuring out why and what I am doing wrong with building an archive to be uploaded to apple app store.</p>
  
  <p>1 - I verified that my new app is in "Waiting for Upload" state.</p>
  
  <p>2 - I have download and double click on the WWDR intermediate certificate.  Verified that this exist in my key chains.</p>
  
  <p>3 - I verified that my distribution certificate is not expired.  It's expiration date is a year from today.  Its status is "Issued"</p>
  
  <p>4 - I have created app id.  I verified that the app name space portion is exactly the same as my application name space.  The states that this app is in are:
       - push notification: configurable (yellow)
       - in app purchase: enable (green) (i want to turn this off, but there's no way to)
       - game center: enable (green) (i want to turn this off, but there's now way to)
       - iCloud: configurable (yellow)</p>
  
  <p>5 - I have verified that my distribution provision is "Active" for the correct application id.</p>
  
  <p>6 - i have downloaded and installed and installed all 3 where they belong:
       a - WWDR intermediate certificate
       b - Distribution certificate
       c - Distribution provisioning profile</p>
  
  <p>I have Xcode 4.2 with IOS 5.  I did an update on the app store for the latest version of XCODE 2 days ago.</p>
  
  <p>In Xcode -> organizer - Devices:
       under "Developer Profile" i have verified that I have the correct provision profile for distribution
       under "Provisioning Profiles" i have verified that I have the correct provision profile for distribution</p>
  
  <p>in Xcode -> project -> build setting:
       i have verified that I specified the correct code signing provision under "Code signing Identity" for both debug and release type.
       debug: i point to my developer provision
       release: i point to my distribution provision</p>
  
  <p>in Xcode -> target -> build setting
       i did the same as the project describe above.</p>
  
  <p>I left "Code signing entitlements" blank
  I left "code signing resource rules path" blank
  i left "other code signing flags" blank</p>
  
  <p>I modify the schema for "iOS device"
  for "archive", i specified:
       "release" under "build configuration"
       "nameOfMyApp" under "archive name"
       i have checked "reveal archive in organizer"</p>
  
  <p>I made sure that my project is compile for all static library.</p>
  
  <p>I then click on "Product" -> "Archive"</p>
  
  <p>The project compiled, there was no compilation error.  (i verified that my app ran on my iPhone)</p>
  
  <p>Toward the end of the archiving a window for codesign pop up.  the message says in exact letters:
       "codesign wants to sign using key "" in your keychain."
  I allow it. (is "" suppose to have some other name other than "key"?)</p>
  
  <p>After I click allow, I see "build succeeded"</p>
  
  <p>I go to the organizer -> Archives, I do not see any item under this section.  the organizer shows "No Archives" for the left pane. and the main panel.</p>
  
  <p>I go to the path where the archive would be shown, I see the archived file, but the size is "Zero byte"</p>
  
  <p>So I search this forum for help, and someone posted a link to a guide:
  <a href="https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933" rel="nofollow noreferrer">https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933</a></p>
  
  <p>I went over this link in very good detail, but still NO luck.</p>
  
  <p>I've been on this issue for a very long time and it's driving me mad and crazy. There are no error returned, thus I have no idea how to fix this issue.</p>
  
  <p>Would someone help me out?</p>
  
  <p>Also is there a phone number that apple provide to support issue like this?  If there is, please provide it here.</p>
  
  <p>After 3 months of development, my app is done and just sitting on my computer and not on the app store. sigh......</p>