Tuesday April 17, 2012

✦ Xcode 4.3 Fix For Simulating from the Command Line

With Apple moving all their own products in the App Store, we’ve had some growing pains with their developer tools. I like where this is going and it seems like Apple is finally settling down. But in the mean time several tools need updating, like waxsim.

Xcode 4.3 moved everything out of /Developer and into the app bundle at /Applications/Xcode.app/Contents/Developer. That means all the frameworks you need to link to are buried in that new location. I forked waxsim and fixed it so that the project knows where to find the developer tools wherever they might be.

I submitted a pull request to Square’s fork of waxsim and am still waiting on their response. But in the mean time you can clone and install my fork of it right on top of what you already have.

Clone and install it like so:

git clone https://github.com/jonathanpenn/WaxSim
cd WaxSim
xcodebuild install DSTROOT=/

Then follow the same instructions in my original post about running the simulator from the command line and you should be all set!