【发布时间】:2011-03-02 11:56:24
【问题描述】:
我只是想为一个 iphone 应用程序构建一个简单的更新(我以前做过),但现在由于某种原因我收到了这个错误。谁能告诉我这是什么意思?
Command/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist failed with exit code 127
sh: plutil: command not found
这是构建结果:
CopyPNGFile /Users/me/path/build/Dist-iphoneos/MyApp.app/img_000.png images/img_000.png
cd /Users/me/
setenv COPY_COMMAND /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/System/Library/Frameworks/JavaVM.frameworK/Versions/1.6/Home/"
"/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng" -compress "" /Users/path/images/img_000.png /Users/me/path/build/Dist-iphoneos/MyApp.app/img_000.png
sh: dirname: command not found
CopyPlistFile /Users/me/path/build/Dist-iphoneos/MyApp.app/Entitlements.plist Entitlements.plist
cd /Users/me/
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/System/Library/Frameworks/JavaVM.frameworK/Versions/1.6/Home/"
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist --convert binary1 Entitlements.plist --outdir /Users/me/path/build/Dist-iphoneos/MyApp.app
sh: plutil: command not found
【问题讨论】:
-
+1 for nailgun 图像...您是否检查了所有目标、构建设置?上次我遇到类似问题时,它是由某个设置字段开头的空格引起的。
-
是的,我已经看过好几次了。有趣的是,退出代码 127 没有一个单一的谷歌搜索结果。
-
尝试将这些命令复制/粘贴到终端中?也可能只是有些无聊,需要重新启动。
-
Entitlements.plist 和 ing_000.png 文件发生了什么变化?
-
错误 127 来自 shell 脚本本身,意思是“找不到文件”。在终端中,尝试输入以下内容: foobar ;回声$?您将看到如下内容: -bash: foobar: command not found 127 其中 127 是操作的错误代码(来自 $?)