calabash/calabash-ios — pull request #54 by lottadot (2012-08-06 18:34:42+00:00)
Title: Add code to look for the derived-data subdir based on the Xcode workspace name

The Xcode xcodeproject.xcodeproj file within a repo's tree (or underneath a workspace) may not match names. And the directory that is built within derived, if within a workspace, will match the workspace name (workspace-randomchars) not the project name.

This patch is for when we are trying to launch the simulator. We note the Xcode workspace name. And when looping through subdirectories at the root of the deriveddata folder, if we cannot match based on the xcode project name, then we try to match based on the workspace name.

Note the need to constantly downcase comparison because OSX can have capitalized FS.