xcode copyplist 失败,退出代码为 71

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/384962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:26:52  来源:igfitidea点击:

copyplist failed with exit code 71

iphonexcodebuildplistadhoc

提问by philsquared

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:

我有一个正在发货的 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 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)

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.

我已经重新安装了 XCode - 两次!(第二次我先删除了 /Developer/Library/Xcode 下的文件)。我已经删除了我的源代码树并重新检查了源代码管理。错误仍然存​​在。

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.

Entitlements.plist 文件已经存在几个星期了,因为我开始了我的上一个测试版程序。我不能确定,但​​我怀疑自从添加它以来我没有在我的第二台开发机器上编译过。然而,除了我的主要开发机器,它在我同事的机器上也都运行良好,所以我很困惑有什么区别。

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.

我在谷歌上搜索了错误,但要么我的 Google-Fu 是错误的,要么这不是一个常见的错误 - 我没有发现相关的命中。

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?

有人遇到过同样的事情,或者有其他建议吗?

回答by

I hit this problem and chased it down to a problem with my ruby install - well not really a problem but anyway

我遇到了这个问题并将其归结为我的 ruby​​ 安装问题 - 好吧,这不是一个真正的问题,但无论如何

Solved it by doing a symlink to the correct place for my ruby install

通过对我的 ruby​​ 安装的正确位置执行符号链接来解决它

sudo ln -s /opt/local/bin/ruby /usr/bin/ruby

须藤 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​​ 安装此文件只是加载核心库,因此只需运行该文件(如果存在)以对其进行跟踪

回答by

yeah, I have this from a custom ruby install, a more universal fix is:

是的,我从自定义 ruby​​ 安装中获得了这个,一个更通用的修复是:

sudo ln -s `which ruby` /usr/bin/ruby

sudo ln -s `which ruby​​` /usr/bin/ruby

回答by grumpit

From here: http://fr.ivolo.us/posts/when-rails-devs-go-iphone

从这里:http: //fr.ivolo.us/posts/when-rails-devs-go-iphone

Open copyplist in your favorite text editor, and change

在您喜欢的文本编辑器中打开 copyplist,并更改

#!/usr/bin/ruby

to

#!/usr/local/bin/bash

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.

我不得不使用 #!/usr/local/bin/ruby 让它使用我的系统安装的 ruby​​,但我想你也可以输入任何 RVM ruby​​ 路径。

回答by Lily Ballard

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.

该文件存在于我的机器上。尝试对 Xcode 进行第三次干净的重新安装(在删除整个 /Developer 树之后 - Xcode 安装应该重新添加整个内容)。然后立即检查该文件是否存在,因为它应该存在。

回答by Ed Trujillo

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";

x"english string" = "国际字符串";

回答by RhodanV5500

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.

我从 SVN 中删除了一些 Localization.strings 文件,但也忘记从 Xcode 项目中删除它们。

I removed them from the project and now its working.

我从项目中删除了它们,现在它可以工作了。