title: Xcode 3.2.5 fail to create IPA file
body: <p>I'm trying to create an IPA file for my application using XCode 3.2.5 (iOS SDK 4.0). But after doing the &quot;Build and Archive&quot; I try to &quot;Save to disk...&quot; the ipa file and nothing happens. The message &quot;Generating IPA file&quot; just dissapears.</p>
  <p>I took a look into the console of the Mac and I think I found the issue but no idea how to fix it.  These what I found on the console:</p>
  <blockquote>
  <p>May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro Xcode[246]: Running /usr/bin/xcrun with (\n    &quot;-sdk&quot;,\n    iphoneos,\n    PackageApplication,\n    &quot;-v&quot;,\n    &quot;/Users/jgarci17/Library/Application Support/Developer/Shared/Archived Applications/16A09235-185F-4F1E-9BFC-A935CAA5699E.apparchive/mWorkf.app&quot;,\n    &quot;-o&quot;,\n    &quot;/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa&quot;,\n    &quot;--sign&quot;,\n    &quot;iPhone Distribution: MyCompany LLC&quot;,\n    &quot;--embed&quot;,\n    &quot;/Users/jgarci17/Library/MobileDevice/Provisioning Profiles/48D38306-E65F-4D2B-A60A-B94CCD3D518A.mobileprovision&quot;\n)</p>
  </blockquote>
  <p>That seems to be fine, but later ...</p>
  <blockquote>
  <p>May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro [0x0-0x16016].com.apple.Xcode[246]: Arguments: embed=/Users/jgarci17/Library/MobileDevice/Provisioning Profiles/48D38306-E65F-4D2B-A60A-B94CCD3D518A.mobileprovision  verbose=1</p>
  <p>==&gt;output_dir=/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa &lt;===</p>
  <p>sign=iPhone Distribution: MyCompany LLC</p>
  <p>May 13 15:29:58 Jorge-Martin-Garcias-MacBook-Pro [0x0-0x16016].com.apple.Xcode[246]: Output directory: '/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa</p>
  </blockquote>
  <p>As you see the output directory is including the ipa file name ! ... so later when the zip command wants to run, fails:</p>
  <blockquote>
  <p>zip error: Could not create output file (/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa/mWorkf.ipa)</p>
  </blockquote>
  <p>When the correct command should have been:</p>
  <blockquote>
  <p>zip error: Could not create output file (/var/folders/pD/pDPQGhivGCCVBsrZpH0VaU+++TI/-Tmp-/D6E45F6F-264A-4714-955A-1EC44E78DFC0-246-0000AFED061085C5/mWorkf.ipa)</p>
  </blockquote>
  <p>Any ideas?</p>