ios Xcode 卡在“您的应用程序正在上传”

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

Xcode stuck at “Your application is being uploaded”

iosiphonexcodeapp-store

提问by Avijit

I am facing an issue while submitting my app from Xcode to the App Store. I have done everything regarding my project, and its running fine on my iPhone and iPad. But when I submit my project I am facing a huge problem.

我在将我的应用程序从 Xcode 提交到 App Store 时遇到问题。我已经完成了有关我的项目的所有工作,并且它在我的 iPhone 和 iPad 上运行良好。但是当我提交我的项目时,我面临着一个巨大的问题。

First after archive I have done the validate. Now my archive file in Organizer is showing status pass validation as well. So I believe I am at the final step of submitting the app.

存档后首先我完成了验证。现在我在 Organizer 中的存档文件也显示状态通过验证。所以我相信我正在提交应用程序的最后一步。

  1. I have clicked on distribute and selected submit app to app store.

  2. After login I have selected provisioning files as well.

  3. I am stuck here. You can see in the screenshot below. And I have never seen any
    progress bar where I can see the submission progress or something like that.

  1. 我点击了分发并选择将应用程序提交到应用程序商店。

  2. 登录后,我也选择了配置文件。

  3. 我被困在这里。您可以在下面的屏幕截图中看到。而且我从未见过任何
    可以查看提交进度或类似内容的进度条。

Only screen I can see is:

我只能看到的屏幕是:

enter image description here

在此处输入图片说明

Edited:

编辑:

It was near about 1.30 hours. And internet connection is working. My ipa file is only 3.5 MB.

大约是 1.30 小时。和互联网连接工作。我的 ipa 文件只有 3.5 MB。

And last when I tried Application loader to upload the same I received the following screen as well for a long time in Authenticating with the iTunes Store.....

而在去年,当我试图应用程序加载器上传同我收到了下面的屏幕以及很长一段时间在身份验证与iTunes Store中.....

enter image description here

在此处输入图片说明

What should I do now?

我现在该怎么办?

采纳答案by Avijit

As I felt a serious issue on this. I believe this answer might be helpful.

因为我觉得这是一个严重的问题。我相信这个答案可能会有所帮助。

After trying for around 10 to 12 hours to fix this issue and as everything else regarding my project and coding was fine enough, it became a headache for me. But after getting some valuable comments from some of the expert users of stack-overflow and after doing some more search on the internet, I have found some quality answers.

在尝试了大约 10 到 12 个小时来解决这个问题之后,由于与我的项目和编码有关的其他一切都足够好,这让我很头疼。但是在从一些 stack-overflow 的专家用户那里得到了一些有价值的评论并在互联网上进行了更多搜索之后,我找到了一些高质量的答案。

This answer helped me the most:

这个答案对我帮助最大:

application loader stuck at the stage of "Authenticating with the iTunes Store"

应用程序加载器卡在“使用 iTunes Store 进行身份验证”阶段

If you are going to upload it through Application Loader and it gets stuck on "Authentication with the iTunes Store..."

如果您要通过 Application Loader 上传它并且它卡在“使用 iTunes Store 进行身份验证...”

or

或者

You are going to upload it through XCode and it stucks on “Your application is being uploaded”

你将通过 XCode 上传它,它卡在“你的应用程序正在上传”

Then just keep your head cool and check this first method:

然后保持冷静并检查第一种方法:

  • Check if your firewall protection is off.If not then turn it off. It maybe blocking you to connect your computer with iTunes Store.

  • Try a different internet connection.The purpose for trying a different internet connection is that your current internet connection maybe blocking a required port for connection to Apple servers.

  • 检查您的防火墙保护是否关闭。如果没有,则将其关闭。它可能会阻止您将计算机与 iTunes Store 连接。

  • 尝试不同的互联网连接。尝试不同的互联网连接的目的是您当前的互联网连接可能会阻止连接到 Apple 服务器所需的端口。

If the above steps doesn't help you then follow this second method:

如果上述步骤对您没有帮助,请按照第二种方法进行操作:

Xcode needs java runtime for uploading your apps to the App Store.

Xcode 需要 java 运行时才能将您的应用程序上传到 App Store。

enter 'java -version' in the terminal, java version should be 1.6 .If not then download latest compatible java only from apple download center:

在终端输入'java -version',java版本应该是1.6。如果不是,那么只能从苹果下载中心下载最新的兼容java:

http://support.apple.com/kb/DL1572?viewlocale=en_US

http://support.apple.com/kb/DL1572?viewlocale=en_US

If this still doesn't help then follow this third method:

如果这仍然没有帮助,请遵循第三种方法:

This method enables the application loader to use the HTTP port instead of HTTPS.

此方法使应用程序加载程序能够使用 HTTP 端口而不是 HTTPS。

  • Go to Application Loader java folder : /Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib

  • Open net.propertiesfile using any text editor application like text mateor sublime text

  • Change this particular line : #https.proxyPort=443proxy port to https.proxyPort=80

  • Save the file. And that's it !! You can easily upload your binary file to App store now.

  • 转到 Application Loader java 文件夹: /Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib

  • 打开net.properties使用像任何文本编辑器应用程序文件text matesublime text

  • 将此特定行更改为:#https.proxyPort=443代理端口 https.proxyPort=80

  • 保存文件。就是这样!!您现在可以轻松地将二进制文件上传到 App Store。

If the above methods still doesn't help then follow this fourth method: Regenerate your certificate

如果上述方法仍然没有帮助,那么请按照第四种方法:重新生成您的证书

  • Goto iOS developer portal (https://developer.apple.com/membercenter).

  • Revoke current certificate which is used by your App for signing.

  • Remove current "iOS distribution provision profile" from Developer portal.

  • Regenerate the iOS distribution certificate and add them in developer portal.

  • Regenerate "iOS distribution provision profile" for app store distribution and download to mac.

  • Install it.

  • Try again using xcode/application loader to upload the build.

  • 转到 iOS 开发者门户 ( https://developer.apple.com/membercenter)。

  • 撤销您的应用程序用于签名的当前证书。

  • 从开发人员门户中删除当前的“iOS 分发配置文件”。

  • 重新生成 iOS 分发证书并将它们添加到开发人员门户中。

  • 重新生成“iOS 分发配置文件”用于应用商店分发并下载到 mac。

  • 安装它。

  • 再次尝试使用 xcode/应用程序加载器上传构建。

回答by Rajan Maharjan

There is definitely a problem if your app stuck on "application stuck process". I suggest you to go with Application loader rather than Xcode itself as Application loader shows the activity status. You can clearly know in which step you stuck.

如果您的应用程序卡在“应用程序卡住进程”上,肯定会出现问题。我建议您使用 Application loader 而不是 Xcode 本身,因为 Application loader 会显示活动状态。您可以清楚地知道您卡在了哪一步。

The most frequent issue faced is to stuck on the "Authentication with the iTunes Store..." step.

面临的最常见问题是停留在“使用 iTunes Store 进行身份验证...”步骤。

There are possible two work around which I followed and finally submitted my app to app store. You can try both. For me both worked at least once.

我遵循了可能的两项工作,并最终将我的应用程序提交到了应用程序商店。你可以两个都试试。对我来说,他们都至少工作过一次。

Method One : This method plays with proxy port to use http connection over https

方法一:此方法使用代理端口通过 https 使用 http 连接

  1. Go to Application Loader java folder : /Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib

  2. Open net.properties file with "sublime text" or "text mate"

  3. Change "#https.proxyPort=443" proxy port to "https.proxyPort=80"

  4. Save the file and reopen Application Loader and Try again.

  1. 转到 Application Loader java 文件夹:/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/java/lib

  2. 使用“sublime text”或“text mate”打开 net.properties 文件

  3. 将“#https.proxyPort=443”代理端口改为“https.proxyPort=80”

  4. 保存文件并重新打开 Application Loader 并重试。

Method Two : Regenerate your certificate and iOS distribution provision profile and Try to upload

方法二:重新生成您的证书和 iOS 分发配置文件并尝试上传

  1. Goto https://developer.apple.com/membercenter

  2. Delete previous certificate referenced by your App for signing.

  3. Revoke your distribution certificate and download it to your mac. And install it by double clicking it.

  4. Delete current "iOS distribution provision profile" from Developer portal.

  5. Regenerate "iOS distribution provision profile" for app store distribution and download to mac.

  6. Install it by double clicking it.

  7. Try again using application loader to upload the build.

  1. 转到https://developer.apple.com/membercenter

  2. 删除您的应用程序引用的先前证书以进行签名。

  3. 撤销您的分发证书并将其下载到您的 mac。并通过双击安装它。

  4. 从开发者门户删除当前的“iOS 分发配置文件”。

  5. 重新生成“iOS 分发配置文件”用于应用商店分发并下载到 mac。

  6. 双击安装它。

  7. 再次尝试使用应用程序加载器上传构建。

Edit: I again got this problem while uploading new build. Both of above methods were followed but was stucking in "Authentication..". Restarted the mac book and it worked. When you restart, the previous itunesconnect connection (which you might have opened in browser prior to submit your app) are reset which allows restarted mac to easily authenticate iTunes Connect. Yesterday (jan 26, 2014) the iTunesConnect authentication step proceeded within 2 mins. Hope this helps someone who is loosing patience while stuck on authentication step.

编辑:我在上传新版本时再次遇到这个问题。遵循上述两种方法,但卡在“身份验证..”中。重新启动 mac book,它起作用了。当您重新启动时,之前的 itunesconnect 连接(您可能在提交应用程序之前已在浏览器中打开)被重置,这允许重新启动的 mac 轻松验证 iTunes Connect。昨天(2014 年 1 月 26 日)iTunesConnect 身份验证步骤在 2 分钟内进行。希望这可以帮助那些在身份验证步骤中失去耐心的人。

Edit 2: Before deleting distribution Certificate, try only regenerating "iOS Distribution Provision Profile". It worked for me else you can redo as above.

编辑 2:在删除分发证书之前,请尝试仅重新生成“iOS 分发配置文件”。它对我有用,否则你可以像上面一样重做。

I Hope this helps. All the best.

我希望这有帮助。祝一切顺利。

回答by Henry_821018

I tried all the steps from Rajan's solution; none worked. However, this threads on apple dev forum (https://forums.developer.apple.com/thread/76803) gave me the solution in my case :

我尝试了 Rajan 解决方案中的所有步骤;没有一个工作。然而,苹果开发论坛(https://forums.developer.apple.com/thread/76803)上的这个线程给了我解决方案:

Try this, it fixed it for me. Open Terminal and run:

试试这个,它为我修好了。打开终端并运行:

cd ~  
mv .itmstransporter/ .old_itmstransporter/  
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"  

iTMSTransporter will then update itself, then you can try uploading in XCode again.

然后 iTMSTransporter 会自行更新,然后您可以再次尝试在 XCode 中上传。

回答by Kong Hantrakool

For me, just logging out from ituneconnect website and developer.apple.com does work.And just using xcode to upload. No need to restart

对我来说,只需从 ituneconnect 网站和 developer.apple.com 注销即可。而且只需使用 xcode 上传。无需重启

回答by rick_du

I got this issue today. But finally I found it's caused by my wrong settings.

我今天遇到了这个问题。但最后我发现它是由我的错误设置引起的。

In 'Build settings' of the target, change settings "Code Signing Identity-> Release" to your production certificate, and "Provisioning Profile-> Release" to your distribution provisioning file.

在目标的“构建设置”中,将设置“代码签名身份-> 发布”更改为您的生产证书,并将“配置文件-> 发布”更改为您的分发配置文件。

Then archive and distribute it again.

然后存档并再次分发。

回答by Sultan Ali

This is Happened Due to the iTMSTransporter
Try this, it fixed it for me. Open Terminal and run:
Use these commands one by one on the terminal. Hope it will help you

这是由于 iTMSTransporter 导致的。
试试这个,它帮我解决了。打开终端并运行:
在终端上一一使用这些命令。希望它会帮助你

  1. cd ~
  2. mv .itmstransporter/ .old_itmstransporter/
  3. "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"
  1. cd ~
  2. mv .itmstransporter/ .old_itmstransporter/
  3. "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

iTMSTransporter will then update itself, then you can try uploading in XCode again.

然后 iTMSTransporter 会自行更新,然后您可以再次尝试在 XCode 中上传。

回答by Khaled Ahmed

try this on terminal

在终端上试试这个

cd ~  
mv .itmstransporter/ .old_itmstransporter/  
"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

worked for me after hours of researching

经过数小时的研究后为我工作

回答by Abdullah Umer

I had the same issue.

我遇到过同样的问题。

I cancelled and ran a validation check. It turned out I had written a URL Schemeincorrectly.

我取消并运行了验证检查。原来我写错了URL Scheme

Xcode did not gave any errors when uploading and simply got stuck but validating gave the error.

Xcode 在上传时没有给出任何错误,只是卡住了,但验证却给出了错误。

So, try validation first. Hope this helps someone.

因此,请先尝试验证。希望这可以帮助某人。

回答by Felix Lamouroux

You can try to cancel the upload and retry. If that does not work you may want to try the Application Loader from Apple. It essentially does the same thing, but does not resign the binary. You can download the application loader from itunes connect. See https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf(Getting Started, Page 9)

您可以尝试取消上传并重试。如果这不起作用,您可能想尝试 Apple 的 Application Loader。它本质上做同样的事情,但不会放弃二进制文件。您可以从 iTunes Connect 下载应用程序加载器。请参阅https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf(入门,第 9 页)

回答by Shahzaib Maqbool

To be honest, this may not be an answer but it really worked for me.

老实说,这可能不是一个答案,但它确实对我有用。

I launched Application Loader and started submitting. While sumbitting was going on, I launched Organiser and select Distribution over archiver in Xcode as well and started uploading concurrent. They worked together and 2nd one completed the submission.

我启动了 Application Loader 并开始提交。在进行上传时,我启动了 Organizer 并在 Xcode 中选择 Distribution over archiver 并开始并发上传。他们一起工作,第二个完成了提交。

Just my experience.

只是我的经验。