This Action Could Not Be Completed. Try Again (-22421)

This Action Could Not Be Completed. Try Again (-22421)

22 May 2024 Stephan Petzl Leave a comment Tech-Help

If you are trying to upload an Apple TV App to the App Store for testing purposes and encounter the error message: “This Action Could Not Be Completed. Try Again (-22421)”, you are not alone. This is a common issue that developers face, and there are several potential solutions to resolve it.

Potential Solutions

1. Wait and Try Again

Sometimes, this error occurs because Apple’s servers are temporarily down or not functioning correctly. In such cases, waiting for some time and trying again later can often resolve the issue.

2. Export and Upload via Application Loader

Another effective solution is to export the iPA file and then upload it using the Application Loader. Here’s how you can do it:

  1. Open Xcode and go to Product > Archive.
  2. Export the archive and save the resulting iPA file to your desktop.
  3. Open the Application Loader via Xcode > Open Developer Tool > Application Loader.
  4. Select the exported iPA file and upload it.

3. Update iTMSTransporter

Updating iTMSTransporter can also fix the error. Follow these steps:


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

4. Reboot Your System

A simple system reboot can sometimes resolve the issue. Restart your machine and try uploading the app again.

5. Update Provisioning Profile

Check if your distribution provisioning profile is valid. If it is invalid, update it, download the new profile, and install it. Restart Xcode, create a new archive, and try uploading again.

6. Clear Derived Data

Clearing derived data can also help. Delete all profiles from ~/Library/MobileDevice/Provisioning Profiles/, delete your developer account from Xcode Preferences, and delete derived data. Restart your machine, download the necessary provisioning profiles, clean your project, and try uploading again.

Conclusion

The “This Action Could Not Be Completed. Try Again (-22421)” error can be frustrating, but with the above solutions, you should be able to resolve it. Whether it’s waiting for Apple’s servers to stabilize, using the Application Loader, or updating your provisioning profile, one of these methods should work for you.

Automate Your Testing with Repeato

While resolving upload issues is crucial, ensuring the quality of your mobile apps through automated testing is equally important. This is where Repeato comes in. Repeato is a no-code test automation tool for iOS and Android that helps you create, run, and maintain automated tests for your apps quickly and efficiently. Leveraging computer vision and AI, Repeato allows you to focus on creating a great product instead of spending time on testing. It also enables non-technical colleagues or QAs to handle test automation, making the process even more streamlined. Learn more about how Repeato can enhance your testing process here.

Like this article? there’s more where that came from!