XCode 4 Archive/IPA 错误:“操作无法完成.没有这样的文件或目录" [英] XCode 4 Archive/IPA Error: "The operation couldn’t be completed. No such file or directory"

查看:64
本文介绍了XCode 4 Archive/IPA 错误:“操作无法完成.没有这样的文件或目录"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Internet 上找到了针对此问题的各种建议解决方案,但没有一个对我有用.有谁知道为什么会发生这种情况?

解决方案

在非常沮丧之后,我向 Apple 提交了开发人员支持请求.与我交谈过的技术人员能够将我的档案保存为她的计算机上的 .ipa - 我无法保存在我的计算机上的完全相同的档案,这表明我的系统中可能存在错误(以及从它的声音,许多其他人的).

她建议我卸载并重新安装 XCode 和开发人员工具,并且奏效了!

这是她的卸载说明:

  • 确保您的机器运行的是最新的 Mac OS X (10.6.7) 和 iTunes.
  • 在终端应用程序中运行以下命令以卸载您的 SKD:sudo /Library/uninstall-devtools --mode=all(其中 是包含您的 SDK 的目录的路径.)
  • 将您的 拖到垃圾箱并重新启动您的机器
  • 从 iOS Dev Center 重新下载并安装 Xcode (4.0.2).在安装之前,请确保已选择自定义安装"窗格中的系统工具"、UNIX 开发"、Essentials"包.

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://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%E2%80%99t-be-completed-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.

Any ideas?

The error message

Right before I get the error

解决方案

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).

She recommended that I uninstall and reinstall XCode and the developer tools, and that worked!

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.

这篇关于XCode 4 Archive/IPA 错误:“操作无法完成.没有这样的文件或目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆