copyplist 失败,退出代码为 71
我有一个正在发货的 iPhone 应用程序(vConqr - 你应该去购买它:-))。 我在几台不同的机器上构建了该项目,包括一位同事的机器,并且运行良好。 然而,就在最近,在我的第二台开发机器上,我的构建每次都失败,并出现错误:
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist Entitlements.plist --outdir /Code/iPhone/VirtualConquest/build/Debug-iphonesimulator/VirtualConquest.app
> <代码> 错误:无法执行'/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist'(没有这样的文件或目录)
我已经重新安装了 XCode - 两次! (第二次我先删除了/Developer/Library/Xcode下的文件)。 我已经删除了我的源代码树并从源代码管理中重新签出。 错误仍然存在。
自从我开始上一个测试计划以来,Entitlements.plist 文件已经存在了几个星期。 我不能确定,但我怀疑自从添加第二台开发机器以来我还没有在它上进行编译。 然而,除了我的主要开发机器之外,它在我同事的机器上也运行良好,所以我很困惑有什么区别。
我已经用 Google 搜索了该错误,但要么我的 Google-Fu 是废话,要么这不是一个常见错误 - 我没有找到相关的命中。
这确实令人沮丧,尤其是因为我使用我的第二台机器作为浸泡测试/持续集成机器。
有人遇到过同样的事情吗,或者有其他建议吗?
I have an iPhone app that's shipping (vConqr - you should go and buy it :-) ).
I build the project on several different machines, including a colleague's, and it's been working fine.
However, just recently, on my second dev machine my build fails every time with the error:
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist Entitlements.plist --outdir /Code/iPhone/VirtualConquest/build/Debug-iphonesimulator/VirtualConquest.app
error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist' (No such file or directory)
I've reinstalled XCode - twice! (the second time I deleted the files under /Developer/Library/Xcode first).
I've deleted my source tree and checked out of source control fresh.
The error persists.
The Entitlements.plist file has been there for a couple of weeks, since I started my last beta programme. I can't be sure, but I suspect I had not compiled on my second dev machine since it was added. However, as well as my primary dev machine, it also all builds fine on my colleagues machine, so I'm baffled what the difference can be.
I've Googled for the error, but either my Google-Fu is bunk or this is not a common error - I've found no relevant hits.
This is really frustrating, not least because I use my second machine as a soak test/ continuous integration machine.
Anyone come across the same thing, or have any other suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我遇到了这个问题,并将其归结为我的 ruby 安装的问题 - 好吧,这并不是一个真正的问题,但无论如何,
通过对我的 ruby 安装的正确位置进行符号链接来解决它
sudo ln -s /opt/local/bin/ruby / usr/bin/ruby
希望这可以帮助别人,因为它让我发疯! 另外,可能不是你的 ruby 安装这个文件只是加载核心库,所以只需运行该文件(如果存在)来跟踪它
I hit this problem and chased it down to a problem with my ruby install - well not really a problem but anyway
Solved it by doing a symlink to the correct place for my ruby install
sudo ln -s /opt/local/bin/ruby /usr/bin/ruby
Hope this helps someone as it drove me insane! Also, may not be your ruby install this file just loads the core libraries so just run the file, if it exists, to track it down
是的,我从自定义 ruby 安装中得到了这个,更通用的修复是:
sudo ln -s `which ruby` /usr/bin/ruby
yeah, I have this from a custom ruby install, a more universal fix is:
sudo ln -s `which ruby` /usr/bin/ruby
从这里:
http://fr.ivolo.us/posts/when-rails-devs -go-iphone
在您最喜欢的文本编辑器中打开 copyplist,然后更改
为
I had to just use
#!/usr/local/bin/ruby
让它使用我的系统安装的 ruby,但我想你也可以输入任何 RVM ruby 路径。
From here:
http://fr.ivolo.us/posts/when-rails-devs-go-iphone
Open copyplist in your favorite text editor, and change
to
I had to just use
#!/usr/local/bin/ruby
to get it to use my system install of ruby, but I imagine you could enter any of your RVM ruby paths as well.
该文件存在于我的机器上。 尝试第三次干净地重新安装 Xcode(删除整个 /Developer 树后 - Xcode 安装应该重新添加整个内容)。 然后立即检查该文件是否存在(它应该存在)。
That file exists on my machine. Try doing a third clean reinstall of Xcode (after deleting the entire /Developer tree - the Xcode install should re-add that whole thing). Then immediately check to see if that file exists, as it should.
这发生在我身上,但它与损坏的语言字符串文件有关。 我在其中一个字符串中有一个额外的字符(参见示例)
x"english string" = "international string";
This happened to me but it was related to a corrupt language strings file. I had an extra character in one of the strings (see the example)
x"english string" = "international string";
就我而言,问题要简单得多:
我从 SVN 中删除了一些 Localization.strings 文件,并且忘记将它们也从 Xcode 项目中删除。
我将它们从项目中删除,现在它可以工作了。
In my case the problem was much simpler:
I deleted a few Localization.strings files from the SVN and forgot to remove them from the Xcode-project too.
I removed them from the project and now its working.