简体   繁体   English

XCode 4 存档/IPA 错误:“操作无法完成。 没有这样的文件或目录”

[英]XCode 4 Archive/IPA Error: “The operation couldn’t be completed. No such file or directory”

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

http://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%E2%80%99t-be-completed-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.我正在使用 XCode 4,我的应用程序为存档而构建。 In fact, I can even upload my application to itunesconnect (and it was accepted.).事实上,我什至可以将我的应用程序上传到 itunesconnect(并且它被接受了。)。 I just can't create an IPA for sharing and beta testing before submission.我只是无法在提交之前创建用于共享和 beta 测试的 IPA。

Any ideas?有任何想法吗?

The error message错误信息错误

Right before I get the error在我收到错误之前在我收到错误之前

After much frustration, I filed a developer support request with Apple.在经历了很多挫折之后,我向 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).与我交谈的技术人员能够将我的存档作为 an.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.确保您的机器运行的是最新的 Mac OS X (10.6.7) 和 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.)在终端应用程序中运行以下命令来卸载您的 SKD: sudo <Xcode>/Library/uninstall-devtools --mode=all (其中<Xcode>是包含 SDK 的目录的路径。)
  • Drag your <Xcode> to the trash and restart your machine将您的<Xcode>垃圾箱并重新启动您的机器
  • Re-download and install Xcode (4.0.2) from the iOS Dev Center.从 iOS 开发中心重新下载并安装 Xcode (4.0.2)。 Make sure that the System Tools, UNIX Development, Essentials packages in the Custom Install pane are selected before installing it.确保在安装之前选择自定义安装窗格中的系统工具、UNIX 开发、基本包。

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希望能帮助到你

Selecting "Don't Re-sign" at Identity solved the same issue for me.在 Identity 中选择“不要重新签名”为我解决了同样的问题。

I actually had the same problem, but a different solution (and reason).我实际上有同样的问题,但不同的解决方案(和原因)。 I had Xcode 3 and Xcode 4 both running at one point.我让 Xcode 3 和 Xcode 4 都同时运行。 I recently deleted Xcode 3 and moved my Xcode 4 from /Xcode4 to /Developer directory.我最近删除了 Xcode 3 并将我的 Xcode 4 从 /Xcode4 移动到 /Developer 目录。 This caused me to have the same issue you describe.这导致我遇到了您描述的相同问题。

I moved the directory back to /Xcode4 and now my archives save out correctly.我将目录移回 /Xcode4,现在我的档案已正确保存。

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".我的项目位于便携式磁盘(格式化为 FAT-32)上,该项目将同一磁盘上的一些文件夹称为“为任何添加的文件夹添加文件夹引用”。 I could build it any configurations however I couldn't just make.ipa file with above alert.我可以构建它任何配置,但是我不能只使用上述警报 make.ipa 文件。

So, I copied the referenced folders on the portable disk to the desktop of the disk installed XCode (MacOS).因此,我将便携式磁盘上的引用文件夹复制到安装了 XCode (MacOS) 的磁盘的桌面上。 And adding again the folders into the project.并再次将文件夹添加到项目中。 I could make.ipa file.我可以制作.ipa 文件。

I installed Xcode 4.0.2 in one directory and then manually moved it to another.我将 Xcode 4.0.2 安装在一个目录中,然后手动将其移动到另一个目录。 When I moved Xcode back to the first directory everything worked.当我将 Xcode 移回第一个目录时,一切正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 该操作无法完成。 没有这样的文件或目录:但是文件存在 - The operation couldn’t be completed. No such file or directory: but the file exists 该操作无法完成。 可可错误4 - The operation couldn’t be completed. Cocoa Error 4 MidiClientCreate“操作无法完成。 (OSStatus错误-50。)” - MidiClientCreate “The operation couldn't be completed. (OSStatus error -50.)” 该操作无法完成。 (可可错误:3840。) - The Operation couldn't be completed. (Cocoa error: 3840.) “这项行动无法完成。 (可可错误512.)“ - “The operation couldn’t be completed. (Cocoa error 512.)” ITLibrary:无法完成操作。 (OSStatus 错误 7011。) - ITLibrary: The operation couldn’t be completed. (OSStatus error 7011.) 该操作无法完成。 (可可错误1560.) - The operation couldn’t be completed. (Cocoa error 1560.) NSInputStream:read:maxLength:在TCP套接字流上返回错误“操作无法完成。 错误的文件描述符” - NSInputStream:read:maxLength: on a TCP socket stream returns the error “The operation couldn’t be completed. Bad file descriptor” 如何解决运行时错误&#39;无法创建带有消息的可写数据库文件&#39;无法完成操作。 (可可错误260.)&#39;。&#39;? - how to solve run time error 'Failed to create writable database file with message 'The operation couldn’t be completed. (Cocoa error 260.)'.'? “该操作无法完成。 仅将图像发送到icloud时,“不允许操作”错误 - “The operation couldn’t be completed. Operation not permitted” error when simply sending image to icloud
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM