验证/上传“准备上传”应用程序时,XCode 5 因超时错误而挂起

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19512877/
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-15 04:08:55  来源:igfitidea点击:

XCode 5 hangs with a timeout error when validating/uploading a "ready to be uploaded" app

iphonexcodeapp-storeprovisioning-profileios-provisioning

提问by Isaac

I've been developing and uploading apps for some months. Whenever they needed being uploaded to the app store, I could do it without problem, but now, I'm stuck with one that doesn't want to be validated/uploaded. XCode says "the request timed out" after MANY minutes with a spinwheel on screen.

我几个月来一直在开发和上传应用程序。每当他们需要上传到应用程序商店时,我都可以毫无问题地做到这一点,但现在,我被一个不想被验证/上传的人困住了。XCode 在屏幕上显示旋转轮的几分钟后显示“请求超时”。

The differences between my old updates to the app store and the one I'm trying right now are:

我对应用商店的旧更新与我现在正在尝试的更新之间的区别是:

-Xcode 4.X before, Xcode 5 now.

- 之前是 Xcode 4.X,现在是 Xcode 5。

-I had to recreate the app store certificate/provisioning profiles, because they just expired.

- 我不得不重新创建应用商店证书/配置文件,因为它们刚刚过期。

-I inherited this project from other coworker (not here anymore) and maybe my "developer profile" is somewhat conflicting with some certificates, etc... (Still many dark areas for me).

- 我从其他同事那里继承了这个项目(不再在这里),也许我的“开发人员资料”与某些证书等有些冲突......(对我来说仍然有很多黑暗区域)。

I've kind of tried "everything". Erasing provisioning/profiles, closing Xcode, resetting, cleaning my project. But no luck. My current Xcode 5 is able to compile my app perfectly, I'm even able to select the distribute option before uploading (the app is ready to be uploaded onto itunes connect), I even login with my client credentials onto itunes connect, I can even select the correct provisioning profile (app store profile, not a developer one), but no luck:

我已经尝试过“一切”。擦除配置/配置文件,关闭 Xcode,重置,清理我的项目。但没有运气。我当前的 Xcode 5 能够完美地编译我的应用程序,我什至可以在上传之前选择分发选项(应用程序已准备好上传到 itunes connect),我什至使用我的客户端凭据登录到 itunes connect,我可以甚至选择正确的配置文件(应用程序商店配置文件,而不是开发人员配置文件),但没有运气:

If I choose to upload or validate, Xcode just complains with some kind of "dull" timeout error.

如果我选择上传或验证,Xcode 只会抱怨某种“乏味”的超时错误。

Any hints? Any way to debug what happens behind the curtains?

任何提示?有什么办法可以调试幕后发生的事情吗?

Greetings, I'm at a loss.

你好,我不知所措。

EDIT: Apparently, the timeout failing event appears in the validation process. If I try to upload, the status log says "Failed Validation". If I try to validate, obviously there's also a "Failed validation" error. Where can I find some log to see what part of the validating process is failing?

编辑:显然,超时失败事件出现在验证过程中。如果我尝试上传,状态日志会显示“验证失败”。如果我尝试验证,显然还有“验证失败”错误。我在哪里可以找到一些日志来查看验证过程的哪一部分失败?

回答by Isaac

Well, apparently: "Problem solved".

好吧,显然:“问题已解决”。

After 2 boring days trying to upload my app (via Xcode 5, and via Application Loader), I've discovered that Apple upload servers seem to be overloaded (unless a better explanation arises).

在尝试上传我的应用程序(通过 Xcode 5 和通过 Application Loader)无聊的 2 天之后,我发现 Apple 上传服务器似乎过载了(除非出现更好的解释)。

I'm in Europe, and from 9 to 14 h my app was ALWAYS rejected. But once I tried it after 16h, the upload and validation processes worked like a charm (both with Xcode 5 and with Application Loader).

我在欧洲,从 9 点到 14 点,我的应用程序总是被拒绝。但是一旦我在 16 小时后尝试它,上传和验证过程就像一个魅力(使用 Xcode 5 和应用程序加载器)。

Why this? No idea, but I didn't change anything in my upload process, so it's sad, but the solution is: "Have patience, and wait to upload your app on a time slot where Apple upload servers are not overloaded". The sad part is: No one knows WHEN is that time :)

为什么这个?不知道,但我在上传过程中没有更改任何内容,所以很遗憾,但解决方案是:“请耐心等待,然后在 Apple 上传服务器未过载的时间段上传您的应用程序”。可悲的是:没有人知道那是什么时候:)

回答by grzegorz.kosciolek

I solved it by switching Internet provider.

我通过切换互联网提供商解决了它。

I simply connected my laptop to my iPhone via Personal Hotspot and used LTE network to upload the app.

我只是通过个人热点将我的笔记本电脑连接到我的 iPhone 并使用 LTE 网络上传应用程序。

It worked for me twice.

它对我有用两次。

回答by Michael Bates

I actually called Apple Developer Support about this and they solved the problem!

我实际上为此致电 Apple Developer Support,他们解决了问题!

It turned out that my recovery email address in my Apple ID (not the main email address but the recovery one) was not verified. They had me go to http://appleid.apple.com, login with my Apple ID, and then go to the 'Password and Security' section (on the left).

结果发现我的 Apple ID 中的辅助邮箱地址(不是主邮箱地址,而是辅助邮箱)没有得到验证。他们让我去http://appleid.apple.com,用我的 Apple ID 登录,然后去“密码和安全”部分(在左边)。

After answering my security questions I was able to resend the verification email, and once verified I was able to log in on Xcode straight away!

在回答我的安全问题后,我能够重新发送验证电子邮件,并且一旦验证我就可以立即登录 Xcode!

回答by JimP

I have the observation that with Mavericks and App Nap enabled, a hidden Organizer window within XCODE will cause the network connection to be dropped.

我观察到在启用 Mavericks 和 App Nap 的情况下,XCODE 中隐藏的管理器窗口将导致网络连接断开。

Even if the window is occulated (hidden) for just a second).

即使窗口被遮挡(隐藏)了一秒钟)。

Make sure the window is always visible and the problem does NOT occur.

确保窗口始终可见并且不会出现问题。