ant - Worklight iOS native build fails on Jenkins -


i trying jenkins build worklight hybrid application. able build hybrid part of application, when try create .ipa file build fails. using example ant script worklight documentation. build succeeding, ipa not being created. when script executes xcrun command

 <exec         dir="${wlappdir}/${mobileplatform}/native"         executable="${iospackagecmd}"         failonerror="false"         output="${iospackagecmdlog}"         resultproperty="iospackagecmdresult" >          <arg value="-sdk" />          <arg value="iphoneos" />          <arg value="packageapplication" />          <arg value="${wlappdir}/${mobileplatform}/native/build/release-iphoneos/${wlapp}.app" />          <arg value="-o" />          <arg value="${local.ipapath}/${wlapp}-${version}.ipa" />          <arg value="--sign" />          <arg value="${certificate}" />          <arg value="--embed" />          <arg value="${provisioning.profile}" />          <arg value="-verbose" />     </exec> 

i following error in logs:

error: specified application doesn't exist or isn't bundle directory : '[my path]/jqmshowcase.app' 

when in workspace, file there. pretty sure of variables correct script.

we using jenkins 1.518 xcode integration plugin 1.3.3. https://wiki.jenkins-ci.org/display/jenkins/xcode+plugin.

we configuring , using through web-interface jenkins provides, unfortunately not familiar exact problem.


for worklight build execute worklight ant tasks according to:

http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/topic/com.ibm.worklight.help.doc/devref/r_ant_tasks_for_building_and_dep.html?resultof=%22%61%6e%74%22%20


for ios build have second jenkins server kicked-off first one, once worklight build complete , ios native folder copied right place using ftp:

we had configure xcode builder configuration in jenkins global config:

xcodebuild executable path  /usr/bin/xcodebuild agvtool executable path /usr/bin/agvtool xcrun executable path   /usr/bin/xcrun 

in specific build job ios project have 2 build steps: execute shell , xcode:

execute shell build step: commands before xcode plugin build (master_build_number simple string parameter set/pass parameterize our builds):

echo $master_build_number rm -rf build_* cp -rf /users/shared/jenkins/upload/$master_build_number . cd $master_build_number/native chmod u+x buildtime.sh 

xcode build step: xcode plugin part of build configured:

  • xcode project directory: ${master_build_number}/native
  • check "build ipa" checkbox
  • build output directory: ${home}/home/jobs/xcode_buildtest1/workspace/${master_build_number}/native/build/release-iphoneos
  • code signing identity: iphone distribution: xxx ltd.
  • embedded profile: ${home}/library/mobiledevice/provisioning profiles/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx.mobileprovision

(.. xxx's our company specific data)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -