homebrew

...now browsing by tag

 
 

Issues using ios-sim with Jenkins

Saturday, 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!

Update: 23 July 2012 New targets for ios-sim links — it’s now part of phonegap

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

Error running launchctl remotely as non-root

Saturday, October 8th, 2011

Today, I’m attempting to install Jenkins under Homebrew on my home server running OS X. I’m ssh-ing into that machine, and got the following error while attempting to launch the program after installation:

Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1

launch_msg(): Socket is not connected

A bit of Googling turned up this page from the Homebrew wiki which mentioned the error message but suggested that iTerm was the cause. I’m not using iTerm, but on a hunch, I tried using Screen Sharing to run Terminal.app directly on the remote machine. Success!

Bash Completion for Ant on OS X with Homebrew

Wednesday, March 23rd, 2011

Now that I’ve set this up, I can’t believe that it’s taken me so long to do it. A bit of googling turned up this blog post, which contained a link to this post in the comments. Since I’m using Homebrew instead of MacPorts, I had to tweak the instructions a bit:

  • Install bash_completion:

    brew install bash_completion

  • Next, add the following to the bottom of your .bashrc or .profile:

    if [ -f `brew --prefix`/etc/bash_completion ]; then
    . `brew --prefix`/etc/bash_completion
    fi
    complete -C /usr/share/ant/bin/complete-ant-cmd.pl ant