'Xcode stuck in "Uploading package to the App Store" stage while uploading
I have tried to upload an application to Test Flight. The app is successfully validated.
However, when distributing, Xcode is stuck in the "Uploading" stage as shown below:
Uploading
Uploading package to the App Store...
I have waited 2 hours and nothing has changed.
I am using Xcode 11.1. Is there any solution for this problem?
Solution 1:[1]
I faced the same problem, and first what I tried was to check my traffic. So I found a process called java
(ironic).
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
. 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:
- Bad connection
- Slow upload speed
- Accepting capacity of Apple servers
- Highload network
- etc.
To open Activity Monitor: Open Spotlight
(cmd+space or ctrl+space) -> Type Activity Monitor
-> open tab Network
Summary: Don't worry, and take your time :)
P.S. For increasing speed of upload you can not include bitcode
.
P.S.S. Try also to use the Transporter
app, sometimes it helps to speed up uploading. (https://apps.apple.com/in/app/transporter/id1450874784?mt=12)
UPDATE Now it's no longer called 'java', it's 'com.apple.dt.Xcode.ITunesSoftwareService'
Solution 2:[2]
I had this same problem. Trying to upload using Application Loader once you're on XCode 11 doesn't work.
My solution was to use the new Transporter app.
Solution 3:[3]
Check if Apple servers are responding from this link: https://www.apple.com/support/systemstatus/ Sometimes they face issues, Apple updates this page regularly.
Solution 4:[4]
In my case there was nothing to worry. It just took some time (like 2 hours). There can be many issues. Your internet upload speed can be slow at that time or an Apple server issue. Just sit back and relax.
Solution 5:[5]
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. The upload worked after I unchecked it.
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.
Solution 6:[6]
When you archive make sure you target "Generic iOS Device" – not your physical development device. This was my issue.
Solution 7:[7]
A lot of times you just need to wait. I thought something was wrong but I waited it out and eventually it went through
Solution 8:[8]
- Export your app as ipa
- use Transporter app to upload your ipa file to app store
You can download the Transporter app on the Mac App Store.
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. 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
Solution 9:[9]
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.
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.
Use the Application Loader (it comes with Xcode). When you are in Application Loader > Preferences > Advanced there are some check boxes. 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.
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.
Solution 10:[10]
I uploaded the ipa on the company’s network some time ago. Everything went very smoothly. Generally, the upload can be completed within 5 minutes. 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
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. 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
Solution 11:[11]
I solved it by unchecking Include Bitcode for iOS Content
Solution 12:[12]
In my case,
when Distributing the app that Include version control was checked with stripe with swift symbol and upload app symbol ...
I unchecked version control and others two remain checked and its works perfectly . thanks
Solution 13:[13]
Steps to do:
- Open terminal in the project directory
flutter clean
flutter pub get
cd ios
pod install
- open XCode and clean project build
- new archive
- and upload
Solution 14:[14]
Steps to do: 1: Check your internet if intenet == fine { wait for up-to 2 hours ! } else { change your connection }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow