此操作无法完成。再试一次 (-22421) (Xcode)

This action could not be completed. Try Again (-22421) (Xcode)

我尝试将我的应用程序上传到 App Store (iTunes Connect) 以在 TestFlight 中测试我的应用程序,但总是出现相同的错误消息。我不知道我做错了什么。这是我尝试上传我的应用程序的第三天。

又看了说这是苹果服务器的问题,但每天都是同样的问题。

请帮我解决这个问题。

我已经用应用程序加载器完成了。首先导出.ipa 文件,然后在Application Loader 中处理以在iTunes Connect 中可视化。从不使用 Xcode.

您可以尝试以下解决方案:
使用 Application Loader 上传您的应用程序,因为 Xcode 组织者有时无法上传文件(拒绝 IPA),没有真正的原因,这是经常发生的问题,Xcode 楼主,那个apple无法永久解析

错误码解决方法:22421

  • Apple app upload server is not working properly (not in connection or lost connection during file upload). Just wait and try again later (may be after a day).
  • Fluctuation in your network connection, during file upload.
  • You may not have added privacy statements in your info.plist file.

Cocoa Keys:这里是您应该考虑添加到 info.plist 文件中的密钥列表,如果您在您的应用程序中使用了该服务。

如今,您可能还会遇到此错误代码:90186(使用应用程序加载器)

  • Outdated application loader can be reason of this error. Use latest Xcode tool and use application loader from Xcode Tool.
  • Incorrect/invalid provisioning profile, associated with your build. Ensure, your have used correct provisioning profile (A provisioning profile with Distribution/Production mode is require. A Development mode provisioning profile won't allow your to upload app on store.)

您可以从最新的 Xcode 工具中找到最新的应用程序加载器工具:Xcode ▶ 打开开发者工具 ▶ 应用程序加载器

试试这个

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