title: Worklight iOS native build fails on Jenkins
body: <p>I am trying to do a Jenkins build for a Worklight hybrid application. I am able to build the hybrid part of the application, but when I try to create the .ipa file the build fails. I am using the example ANT script from the Worklight documentation. The build is actually succeeding, but the ipa is not being created. When the script executes the xcrun command</p>
  
  <pre><code> &lt;exec
          dir="${wlappdir}/${mobilePlatform}/native"
          executable="${iosPackageCMD}"
          failonerror="false"
          output="${iosPackageCMDlog}"
          resultproperty="iosPackageCMDResult" &gt;
  
          &lt;arg value="-sdk" /&gt;
  
          &lt;arg value="iphoneos" /&gt;
  
          &lt;arg value="PackageApplication" /&gt;
  
          &lt;arg value="${wlappdir}/${mobilePlatform}/native/build/Release-iphoneos/${wlApp}.app" /&gt;
  
          &lt;arg value="-o" /&gt;
  
          &lt;arg value="${local.ipaPath}/${wlApp}-${version}.ipa" /&gt;
  
          &lt;arg value="--sign" /&gt;
  
          &lt;arg value="${certificate}" /&gt;
  
          &lt;arg value="--embed" /&gt;
  
          &lt;arg value="${provisioning.profile}" /&gt;
  
          &lt;arg value="-verbose" /&gt;
      &lt;/exec&gt;
  </code></pre>
  
  <p>I get the following error in the logs:</p>
  
  <pre><code>error: Specified application doesn't exist or isn't a bundle directory : '[my path]/JQMShowcase.app'
  </code></pre>
  
  <p>When I look in the workspace, that file is definitely there. I am also pretty sure that all of the variables are correct for the script.</p>