From: Eric Christopherson Date: 2010-09-27T06:03:21+09:00 Subject: Re: error "copyplist failed with exit code 127" On Sun, Sep 26, 2010 at 3:38 AM, Samuel Sam wrote: > Eric, > > I tried to use the absolute path /usr/bin/plutil but then, ruby > considered plutil as being a directory and not a file. Error received : > [code] > sh: line 0: cd: /usr/bin/plutil: Not a directory > Command > /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist > failed with exit code 1 > [/code] Oh, yeah. Sorry, I forgot you wrote that. It looks like the script has other problems as well. For instance, when I run it on a plist file: > $ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist /Users/eric/Library/Preferences/com.apple.Terminal.plist . > copyplist: no output directory specified > usage: copyplist [options] SRCFILE ... DSTDIR > -v, --[no-]validate Check validity before copying > -o, --outdir DIR Specify the output directory > -c, --convert FMT Convert output to FMT (same values as for 'plutil -convert') > -h, --help Show this message It specifies "no output directory specified", even though I've specified ".". So I use "-o ." to specify it more explicitly, and that works. However, when I add "-v" to validate, I get "unrecognized option: -lint", followed by the plutil help text. I'm not sure which program is reporting that "-lint" is unrecognized; if I manually run "plutil -lint" it works fine. > > Thanks for directing me to these sites, I didn't know them. > And thanks to everyone from Ruby community. I'll get back here once I > have the answer! Good luck!