Issues using ios-sim with Jenkins

Written by Dante on January 21st, 2012

Just a quick one: there seem to be two issues that prevent ios-sim from successfully launching an iOS app in the simulator as part of a Jenkins build:

  1. Specifying the wrong path for the built application
  2. Running Jenkins as a user other than the one currently logged into OS X

I got tripped up by the first problem because there was a bug in the code I wrote to figure out the current working directory of the build: it worked on my local machine but not in Jenkins’ workspace (whoops). ios-sim would be a better tool if it alerted the user that the specified application path doesn’t exist, so I’ve made it do just that.

Fortunately, I didn’t bump into the second issue because I installed Jenkins using Homebrew *, but I’m mentioning it because more than one of the ios-sim users commenting on this issue seem to be running Jenkins as root.

I’m writing up a much more detailed post about CI for iOS… watch this space!

* By default, all the services installed by Homebrew run as the user who installed Homebrew itself.

 

Leave a Comment