XCode 4 Archive/IPA 错误:“操作无法完成。没有这样的文件或目录”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5838409/
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
XCode 4 Archive/IPA Error: "The operation couldn’t be completed. No such file or directory"
提问by Philip Walton
I've found various proposed solutions to this problem on this internet, but none of them work for me. Does anyone know why this might be happening?
我在这个互联网上找到了解决这个问题的各种提议的解决方案,但没有一个对我有用。有谁知道为什么会发生这种情况?
http://answers.unity3d.com/questions/15294/xcode-build-and-archive-error-no-such-file-or-directory
http://answers.unity3d.com/questions/15294/xcode-build-and-archive-error-no-such-file-or-directory
I've tried archiving with every combination of coding signing vs not using code signing, and I've tried using every combination of provisioning profiles, but I still get the same error every time.
我尝试使用编码签名与不使用代码签名的每种组合进行存档,并且我尝试使用配置文件的每种组合,但每次我仍然遇到相同的错误。
I'm very confused as to why I'd even be getting an error like this when trying to save a file. I'm using XCode 4, my application builds for archive fine. In fact, I can even upload my application to itunesconnect (and it was accepted!). I just can't create an IPA for sharing and beta testing before submission.
我很困惑为什么在尝试保存文件时我什至会收到这样的错误。我正在使用 XCode 4,我的应用程序可以很好地构建存档。事实上,我什至可以将我的应用程序上传到 itunesconnect(它被接受了!)。我只是无法在提交前创建用于共享和 Beta 测试的 IPA。
Any ideas?
有任何想法吗?
采纳答案by Philip Walton
After much frustration, I filed a developer support request with Apple. The technician I spoke with was able to save my archive as an .ipa on her computer -- the exact same archive that I was not able to save on mine, which pointed to a possible bug in my system (and from the sounds of it, many other people's).
在非常沮丧之后,我向 Apple 提交了开发人员支持请求。与我交谈过的技术人员能够将我的档案保存为她的计算机上的 .ipa - 我无法保存在我的计算机上的完全相同的档案,这表明我的系统中可能存在错误(以及从它的声音,许多其他人的)。
She recommended that I uninstall and reinstall XCode and the developer tools, and that worked!
她建议我卸载并重新安装 XCode 和开发人员工具,这奏效了!
Here were her uninstall instructions:
这是她的卸载说明:
- Make sure that your machine is running the latest Mac OS X (10.6.7) and iTunes.
- Run the following command in the Terminal application to uninstall your SKD:
sudo <Xcode>/Library/uninstall-devtools --mode=all
(where<Xcode>
is the path to the directory that contains your SDK.) - Drag your
<Xcode>
to the trash and restart your machine - Re-download and install Xcode (4.0.2) from the iOS Dev Center. Make sure that the System Tools, UNIX Development, Essentials packages in the Custom Install pane are selected before installing it.
- 确保您的机器运行的是最新的 Mac OS X (10.6.7) 和 iTunes。
- 在终端应用程序中运行以下命令以卸载您的 SKD:(
sudo <Xcode>/Library/uninstall-devtools --mode=all
其中<Xcode>
包含您的 SDK 的目录的路径。) - 将您
<Xcode>
的拖到垃圾箱并重新启动您的机器 - 从 iOS Dev Center 重新下载并安装 Xcode (4.0.2)。确保在安装之前选择自定义安装窗格中的系统工具、UNIX 开发、Essentials 包。
回答by imort
I have the same issue after my distribution certificate was expired. I add new ones (private key and certificate) and xCode "Share" command starts to produce such error.
我的分发证书过期后,我遇到了同样的问题。我添加了新的(私钥和证书),xCode“共享”命令开始产生这样的错误。
The problem resolves as soon as I remove old private key & certificate from Keychain Access. Hope it helps
一旦我从 Keychain Access 中删除旧的私钥和证书,问题就会解决。希望能帮助到你
回答by Chei
Selecting "Don't Re-sign" at Identity solved the same issue for me.
在身份中选择“不要重新签名”为我解决了同样的问题。
回答by mashimox
I also had the same problem but I could resolve the problem in the below way.
我也遇到了同样的问题,但我可以通过以下方式解决问题。
My project was on the portable disk (formatted as FAT-32) and the project referred some folders on the same disk as "add folder reference for any added folder". I could build it any configurations however I couldn't just make .ipa file with above alert.
我的项目在便携式磁盘上(格式化为 FAT-32),并且该项目将同一磁盘上的一些文件夹称为“为任何添加的文件夹添加文件夹引用”。我可以构建它任何配置,但是我不能只制作带有上述警报的 .ipa 文件。
So, I copied the referenced folders on the portable disk to the desktop of the disk installed XCode (MacOS). And adding again the folders into the project. I could make .ipa file.
因此,我将便携式磁盘上的引用文件夹复制到安装了 XCode (MacOS) 的磁盘的桌面上。并再次将文件夹添加到项目中。我可以制作 .ipa 文件。
回答by Eric Goldberg
I actually had the same problem, but a different solution (and reason). I had Xcode 3 and Xcode 4 both running at one point. I recently deleted Xcode 3 and moved my Xcode 4 from /Xcode4 to /Developer directory. This caused me to have the same issue you describe.
我实际上有同样的问题,但不同的解决方案(和原因)。我同时运行了 Xcode 3 和 Xcode 4。我最近删除了 Xcode 3 并将我的 Xcode 4 从 /Xcode4 移动到 /Developer 目录。这导致我遇到了您描述的相同问题。
I moved the directory back to /Xcode4 and now my archives save out correctly.
我将目录移回 /Xcode4,现在我的档案可以正确保存。
回答by Evgeni Petrov
I installed Xcode 4.0.2 in one directory and then manually moved it to another. When I moved Xcode back to the first directory everything worked.
我在一个目录中安装了 Xcode 4.0.2,然后手动将其移动到另一个目录。当我将 Xcode 移回第一个目录时,一切正常。