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

IosSwiftXcode

Ios Problem Overview


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...

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?

Ios Solutions


Solution 1 - Ios

I faced the same problem, and first what I tried was to check my traffic. So I found a process called java (ironic).

Activity monitor

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 - Ios

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 - Ios

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 - Ios

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 - Ios

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.

Uncheck

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 - Ios

When you archive make sure you target "Generic iOS Device" – not your physical development device. This was my issue.

Solution 7 - Ios

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 - Ios

  • 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 - Ios

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.

  2. 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.

enter image description here

Solution 10 - Ios

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 - Ios

I solved it by unchecking Include Bitcode for iOS Content

Solution 12 - Ios

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 - Ios

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
  7. new archive
  8. and upload

Solution 14 - Ios

Steps to do: 1: Check your internet if intenet == fine { wait for up-to 2 hours ! } else { change your connection }

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAybek Can KayaView Question on Stackoverflow
Solution 1 - IosAndrew Z.View Answer on Stackoverflow
Solution 2 - IosMick ByrneView Answer on Stackoverflow
Solution 3 - IosAtul DhakaView Answer on Stackoverflow
Solution 4 - IosArnab Ahamed SiamView Answer on Stackoverflow
Solution 5 - IosLaud GilbertView Answer on Stackoverflow
Solution 6 - IosKamar MackView Answer on Stackoverflow
Solution 7 - IosMobileMonView Answer on Stackoverflow
Solution 8 - IosMohammed IbrahemView Answer on Stackoverflow
Solution 9 - IosFaisal MemonView Answer on Stackoverflow
Solution 10 - IosJerseyView Answer on Stackoverflow
Solution 11 - IosHamza BacharView Answer on Stackoverflow
Solution 12 - IosTasnuva Tavasum oshinView Answer on Stackoverflow
Solution 13 - IosMufassal HussainView Answer on Stackoverflow
Solution 14 - IosShaharyar KhanView Answer on Stackoverflow