From: Eric Christopherson Date: 2010-09-26T02:39:47+09:00 Subject: Re: error "copyplist failed with exit code 127" On Sat, Sep 25, 2010 at 3:23 AM, Samuel Sam wrote: > Morning everyone, > > I'm not a ruby developer (using XCode) but facing an error which is > coming from the ruby file "copyplist " locate under : > /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copylyst > > The entire error message is : > [code] > sh: plutil: command not found > Command > /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist > failed with exit code 127 > [/code] > > If needed I can provide you with the whole copylist code but here's the > lines that call "plutil" word: > [code] > system('plutil -s -lint -- "' + srcPath + '"') > ... > system('plutil -convert "' + OPTIONS[:OutputFormat] + '" -s -o "' + > OPTIONS[:OutputDir] + '/' + File.basename(srcPath) + '" -- "' + srcPath > + '"') > [/code] > > My current understanding of this error is : > - The ruby file "copylist" tries to access a Unix script "plutil"but > can't find it. > > That "plutil" file is located under: /usr/bin which apparently is in > ruby path by default. > I tried to add the line [code] Dir.chdir("/usr/bin") [/code] in > "copylist" just before the two lines stated upper but still getting the > same error. > I also tried with "./plutil" which failed miserably providing an other > error. Have you tried changing it to /usr/bin/plutil? (Just a suggestion; I'm guessing that would do the same thing as your chdir+./plutil, but you never know.) It appears other people are suffering this problem too. Maybe you should file a bug report with Apple (at either or ; I'm not sure what the difference is), then also do one at (which is basically a site intended to work in tandem with Apple's bug tracker; OpenRadar allows users to search for existing bug reports, which the Apple one does not do). > > I hope that one of you can help me. > Thanks in advance.