简体   繁体   English

Xcode 上传时卡在“Uploading package to the App Store”阶段

[英]Xcode stuck in "Uploading package to the App Store" stage while uploading

I have tried to upload an application to Test Flight.我试图将应用程序上传到 Test Flight。 The app is successfully validated.该应用程序已成功验证。

However, when distributing, Xcode is stuck in the "Uploading" stage as shown below:但是在分发时,Xcode卡在“Uploading”阶段,如下图:

Uploading上传中
Uploading package to the App Store...正在上传 package 到 App Store...

正在上传包到 App Store...

I have waited 2 hours and nothing has changed.我已经等了 2 个小时,什么都没有改变。

I am using Xcode 11.1.我正在使用 Xcode 11.1。 Is there any solution for this problem?这个问题有什么解决办法吗?

I faced the same problem, and first what I tried was to check my traffic.我遇到了同样的问题,首先我尝试的是检查我的流量。 So I found a process called java (ironic).于是我找到了一个叫java的进程(讽刺)。

The process has since been renamed to com.apple.dt.Xcode.ITunesSoftwareService此后,该进程已重命名为com.apple.dt.Xcode.ITunesSoftwareService

活动监视器

If you will check info about this process there will be tab Open Files and Ports and there in the bottom of the log window, you will see %YourApp%.ipa .如果您要检查有关此过程的信息,将会有选项卡Open Files and Ports ,并且在日志窗口的底部,您将看到%YourApp%.ipa And in general if Sent Packets & Sent Bytes increasing that's mean uploading is not stuck it's just can be one of many issues such as:一般来说,如果Sent Packets & Sent Bytes增加,则意味着上传不会卡住,这可能是许多问题之一,例如:

  • Bad connection信号不良
  • Slow upload speed上传速度慢
  • Accepting capacity of Apple servers Apple 服务器的接受能力
  • Highload network高负载网络
  • etc.等等

To open Activity Monitor: Open Spotlight (cmd+space or ctrl+space) -> Type Activity Monitor -> open tab Network要打开活动监视器:打开Spotlight (cmd+空格或 ctrl+空格)-> 键入Activity Monitor -> 打开选项卡Network

Summary: Don't worry, and take your time :)总结:别着急,慢慢来:)

PS For increasing speed of upload you can not include bitcode . PS 为了提高上传速度,您不能包含bitcode

PSS Try also to use the Transporter app, sometimes it helps to speed up uploading. PSS 也尝试使用Transporter应用程序,有时它有助于加快上传速度。 ( https://apps.apple.com/in/app/transporter/id1450874784?mt=12 ) https://apps.apple.com/in/app/transporter/id1450874784?mt=12

I had this same problem.我有同样的问题。 Trying to upload using Application Loader once you're on Xcode 11 doesn't work.在 Xcode 11 上尝试使用 Application Loader 上传是行不通的。

My solution was to use the new Transporter app .我的解决方案是使用新的 Transporter 应用程序

检查 Apple 服务器是否从以下链接响应: https ://www.apple.com/support/systemstatus/ 有时他们会遇到问题,Apple 会定期更新此页面。

In my case there was nothing to worry.就我而言,没有什么可担心的。 It just took some time (like 2 hours).只是花了一些时间(比如2小时)。 There can be many issues.可能有很多问题。 Your internet upload speed can be slow at that time or an Apple server issue.那时您的互联网上传速度可能会很慢或 Apple 服务器出现问题。 Just sit back and relax.坐下来放松一下。

从应用商店下载“传输器”应用程序并使用它将您的应用程序上传到应用程序商店,我使用它并立即上传......我不知道组织者有什么问题,但该应用程序不会无论您等待上传多少小时或多少天,都将其上传

I faced the same issue for over a week.我面临同样的问题一个多星期。 In my case, I was working on other projects at the time and their uploads were going through but one particular project was always hanging, and later fails.就我而言,当时我正在处理其他项目,他们的上传正在完成,但一个特定的项目总是挂起,后来又失败了。

I later realised when Distributing the app that Include Bitcode for iOS Content was checked.后来我意识到在分发应用程序时检查了Include Bitcode for iOS Content的位码。 The upload worked after I unchecked it.取消选中后上传工作。

取消选中“包含 iOS 内容的位码”

NB: Including bitcode(during distribution) and enabling bitcode(in the app's project and target settings), is supposed to offer some benefit with frameworks compatibility, but it slows down upload substantially, and may even cause it to fail.注意:包括位码(在分发期间)和启用位码(在应用程序的项目和目标设置中),应该提供一些框架兼容性的好处,但它会大大减慢上传速度,甚至可能导致上传失败。 It also slows down the time it takes for your binary to be processed so that it's ready for submission.它还减慢了处理二进制文件所需的时间,以便准备好提交。

When you archive make sure you target "Generic iOS Device" – not your physical development device.当你存档时,请确保你的目标是“通用 iOS 设备”——而不是你的物理开发设备。 This was my issue.这是我的问题。

A lot of times you just need to wait.很多时候你只需要等待。 I thought something was wrong but I waited it out and eventually it went through我以为出了点问题,但我等了它,最终它通过了

  • Export your app as ipa将您的应用导出为 ipa
  • use Transporter app to upload your ipa file to app store使用 Transporter 应用程序将您的 ipa 文件上传到应用程序商店

You can download the Transporter app on the Mac App Store.您可以在 Mac App Store 上下载Transporter应用程序。

The Transporter app for macOS is a simple and easy way to upload an app to App Store Connect for distribution on the App Store.适用于 macOS 的 Transporter 应用程序是一种将应用程序上传到 App Store Connect 以在 App Store 上分发的简单方法。 In addition to uploading your build, you can upload your metadata packages, view delivery progress (including warnings, errors, and delivery logs), as well as a history of past deliveries.除了上传构建之外,您还可以上传元数据包、查看交付进度(包括警告、错误和交付日志)以及过去交付的历史记录。

That fixed the problem for me easily这很容易为我解决了问题

I myself have had the same problems in the past;我自己过去也遇到过同样的问题。 partial progress and then a hang for no apparent reason.部分进展,然后无缘无故挂起。

In my experience there are two secrets for reliable upload that resolve such problems.根据我的经验,可靠上传有两个秘诀可以解决此类问题。

  1. Use the latest version of Xcode (not just a new-ish one) because the protocol between the client uploader and the server tend not to be very tolerant of version differences, leading to strange hangs during upload.使用最新版本的 Xcode(不仅仅是一个新版本),因为客户端上传器和服务器之间的协议往往不能很好地容忍版本差异,导致上传过程中出现奇怪的挂起。

  2. Use the Application Loader (it comes with Xcode).使用 Application Loader(它随 Xcode 提供)。 When you are in Application Loader > Preferences > Advanced there are some check boxes.当您在 Application Loader > Preferences > Advanced 中时,会有一些复选框。 Experiment by unticking each item and then ticking just one, and then try the upload.取消勾选每个项目,然后只勾选一项,然后尝试上传。 This trick is often needed to get through firewalls and corporate intranets, and sometimes from a regular home Internet connection.这个技巧通常需要通过防火墙和公司内部网,有时还需要通过常规的家庭 Internet 连接。

I have no idea what those protocols actually are, by the way!顺便说一句,我不知道这些协议实际上是什么! Sometimes they make the upload faster.有时他们使上传速度更快。 I suspect you hit different servers in the upload farm according to the protocol you select.我怀疑您根据您选择的协议访问了上传场中的不同服务器。

在此处输入图像描述

我遇到了同样的问题,在我的 MacBook 上使用“Transporter”应用程序有所帮​​助。

I uploaded the ipa on the company's network some time ago.我前段时间在公司网络上传了ipa。 Everything went very smoothly.一切都进行得非常顺利。 Generally, the upload can be completed within 5 minutes.一般5分钟内即可完成上传。 I also encountered this problem recently.我最近也遇到了这个问题。 I have been stuck in the last step of uploading..., repeated many times.我一直卡在上传的最后一步......,重复了很多次。 Stuck here, waiting for more than 6 hours has no effect卡在这里,等了6个多小时没有效果

This is how I solved it, because the company's broadband uses a telecom network operator, and my mobile phone uses a mobile network operator.我是这样解决的,因为公司的宽带是电信运营商的,我的手机是移动网络运营商的。 I share the 4G data of the mobile phone to the computer for uploading.我把手机的4G数据分享到电脑上传。 The exciting thing is that the upload speed is very high.令人兴奋的是上传速度非常快。 Fast, and the last step will never get stuck快,最后一步永远不会卡住

I have been uploading IPA using my mobile data for the past 2 months,You can try to switch to different network operators to upload, it may have good results我最近2个月一直在用我的移动数据上传IPA,你可以尝试切换到不同的网络运营商上传,可能会有不错的效果

这是我关于堆栈溢出的第一个答案,因为我尝试了很多在应用商店上传应用的方法,然后我只将我的网络切换到其他网络并等待几分钟,它就通过了。

"

我通过取消选中 Include Bitcode for iOS Content 解决了这个问题

In my case,就我而言,

when Distributing the app that Include version control was checked with stripe with swift symbol and upload app symbol ...当分发包含版本控制的应用程序时,使用带有 swift 符号上传应用程序符号的条纹检查...

I unchecked version control and others two remain checked and its works perfectly .我未选中版本控制,其他两个仍处于选中状态,并且它工作得很好。 thanks谢谢

It works 100% 100% 有效

Use Transporter App to upload an app to App Store使用Transporter App将应用上传到 App Store

Steps to do:要做的步骤:

  1. Open terminal in the project directory在项目目录中打开终端
  2. flutter clean
  3. flutter pub get
  4. cd ios
  5. pod install
  6. open XCode and clean project build打开 XCode 并清理项目构建
  7. new archive新档案
  8. and upload并上传

Steps to do: 1: Check your internet if intenet == fine { wait for up-to 2 hours !要做的步骤: 1:检查您的互联网,如果 intenet == 很好 { 最多等待 2 小时! } else { change your connection } } else { 改变你的连接 }

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM