10.5: A solution for PackageMaker failing in 10.5

Dec 18, '07 07:30:01AM

Contributed by: jyee

If you've used the PackageMaker command line tool in 10.4, and tried to run the same command in 10.5, you may experience a failure with the error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'

This is because otool is in /Developer/usr/bin and not in /usr/bin where PackageMaker is expecting it. Simply symlink to otool by typing:

ln -s /Developer/usr/bin/otool /usr/bin/otool
[robg adds: Over on the queue site, a comment notes that the only time this will happen is if the user unchecks the UNIX Development Support option in the Xcode installer. This feature, which is enabled by default, is described by Apple in this way: "Optional content to allow command-line development from the boot volume. Installs a duplicate of the GCC compiler and command line tools included with the core Xcode developer tools package into the boot volume. It also installs header files, libraries, and other resources for developing software using Mac OS X into the boot volume. This package is provided for compatibility with shell scripts and makefiles that require access to the developer tools in specific system locations. This content is not relocatable and will only be installed onto the boot volume." Thanks, fds!]

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20071207081156312