title: XE4 iOS app: Unable to install package. (e8008015)
body: <p>I took part in the XE4 beta and despite having problems that the .ipa could never be produced (error message in Delphi "Invalid ipa option"), the app was always actually physically deployed to the device, but was never created in the Mac scratch-dir.</p>
  
  <p>If I copied and pasted the paclient command into the command prompt though, it worked. My QC issue on this was closed as resolved, but it wasn't.</p>
  
  <p>Now with XE4, using the same settings I had with the beta, I'm getting this error when deploying to the device:</p>
  
  <pre><code>Unable to launch process on '10.0.0.60' using the parameters from the 'Delphi_XE4' profile.
  The following error was returned: 'Unable to install package. (e8008015)'
  </code></pre>
  
  <p>The app deploys to the XCode Simulator OK, so the connection details are correct. During deployment, I can see PAServer accepting the commands on the Mac, but whether I use the Debug or Ad-hoc build type, I get this error.</p>
  
  <p>I checked the device logs in XCode and found the following:</p>
  
  <pre><code>Apr 29 08:48:37 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 handle_install: Install of "/var/mobile/Media/PublicStaging/iOS_Location.app" requested by mobile_installation_proxy
  Apr 29 08:48:37 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 MobileInstallationInstall_Server: Installing app iOS_Location
  Apr 29 08:48:37 Js-iPhone-4S installd[54] &lt;Error&gt;: Apr 29 08:48:37 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
  Apr 29 08:48:38 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.XRYC1t/iOS_Location.app/iOS_Location: 0xe8008015
  Apr 29 08:48:38 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.XRYC1t/iOS_Location.app
  Apr 29 08:48:38 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 install_application: Could not preflight application install
  Apr 29 08:48:38 Js-iPhone-4S mobile_installation_proxy[1595] &lt;Error&gt;: 0x3baabb88 MobileInstallationInstall: failed with -1
  Apr 29 08:48:38 Js-iPhone-4S mobile_installation_proxy[1595] &lt;Error&gt;: handle_install: Installation failed
  Apr 29 08:48:38 Js-iPhone-4S installd[54] &lt;Error&gt;: 0x2ffed000 handle_install: API failed
  </code></pre>
  
  <p>It seems the code signing stage is not working, even though I'm using the same mobile provision as I used all throughout the beta process. I've walked through all of the stages in the Docwiki, but nothing changes this error. My iPhone Developer &amp; Distribution certificates are valid and only a few months old. </p>
  
  <p>This happens on my project and any of the sample projects installed with XE4 as well. In the above log, I was using the iOS_Location sample.</p>
  
  <p>I'm frustrated because I've seen the beta working but now can't get the full release to work. I'm sure it's environmental but I'm running out of ideas.</p>
  
  <p>XE3 is installed in the same PC, but the forums suggest this is ok.
  XCode on the Mac is fully up to date.
  Remember, it deploys to the simulator on the mac fine.</p>
  
  <p>Any help would be appreciated.</p>