Building iOS project with Jenkins on Ubuntu Linux -


i have installed jenkins in ubuntu , while trying build ios app in jenkins below error occurs:

fatal: cannot find xcodebuild configured path /usr/bin/xcodebuild.

the xcodebuild tool part of xcode sdk apple — it's available download on mac os x.
cannot use official ios tools build on computer isn't running os x.

this means that, if have jenkins job builds ios app, must built on mac.

this not mean, however, jenkins must installed on mac. jenkins supports distributed builds, whereby can have multiple machines, different operating systems, , can instruct jenkins on machine build should run.

for example, have ubuntu machine jenkins master server, can add mac build node. jenkins master communicate build node (mac) via ssh. in configuration build node, should add label, e.g. "xcode", signify xcode sdk installed.

in jenkins job configuration, there option called "restrict project can run", can tell jenkins may build job on node given label. in case, enter "xcode", , job built on appropriate mac, rather on ubuntu machine.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -