The "xcode-select" command-line tool is used to switch from one Xcode.app instance to another. If a development machine doesn't have an application named Xcode.app (e.g. in my case I only have Xcode45-DP2.app) then generating a docset will cause an exception.
This pull request switches to using the "xcrun" tool to identify and run the correct path based on the user's environment.
Use the 'xcrun' tool to identify the path to the 'docsetutil' command…
…, allowing xcode-select to identify which Xcode.app copy is the active Xcode
Use the xcrunPath settings value for the xcrun path
Thanks for your contribution - this is one of the areas that caused disturbances among appledoc users when Xcode 4 arrived. I just never got enough time to tackle it properly, seems like xcrun is the way to go. Will probably cause short term issues for few devs as cmd line switch changed, but let's see :)