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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35429801/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 08:31:43  来源:igfitidea点击:

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

iosxcodeapp-store-connect

提问by Nimisha Ranipa

I am trying to upload an Apple TVApp to the App Store for testing purposes, but I got the issue:

我正在尝试将Apple TV应用程序上传到 App Store 以进行测试,但我遇到了问题:

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

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

as in the below image:

如下图所示:

enter image description here

在此处输入图片说明

So what can I do?

那我能做什么?

回答by Bart?omiej Semańczyk

This happens because Apple's servers may not be working correctly. Just wait and try later or next time. It will work for sure eventually.

发生这种情况是因为 Apple 的服务器可能无法正常工作。请稍等,稍后或下次再试。它最终肯定会起作用。

回答by Naresh Nallamsetty

Just try exporting the iPA file and then upload that exported iPA file with application loader. It will solve your problem.

只需尝试导出 iPA 文件,然后使用应用程序加载程序上传导出的 iPA 文件。它会解决你的问题。

回答by asedra_le

There's another way to fix above error. Try this, it fixed it for me. Open Terminal and run:

还有另一种方法可以修复上述错误。试试这个,它为我修好了。打开终端并运行:

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

Three above code line will update iTMSTransporter, then you can try uploading in XCode again.

上面三个代码行会更新iTMSTransporter,然后你可以再次尝试在XCode中上传。

Refs for more details: https://forums.developer.apple.com/thread/76803

更多细节参考:https: //forums.developer.apple.com/thread/76803

回答by BennyTheNerd

(As of May 23, 2018)

(截至 2018 年 5 月 23 日)

Step 1

第1步

Open Xcode --> Producttab --> Archive--> exportand save to desktop

打开 Xcode -->产品选项卡 -->存档-->导出并保存到桌面

Step 2

第2步

Open Xcode --> Xcodetab --> Open Developer Tool--> Application Loader>> double-click Deliver YourAppand select the recently exported .ipa file from your desktop

打开 Xcode --> Xcodetab --> Open Developer Tool--> Application Loader>> 双击Deliver YourApp并从桌面选择最近导出的 .ipa 文件

Solved the issue every time =)

每次都解决了这个问题=)

回答by Darren

As with all thing Xcode related. A simple reboot fixed the problem for me.

与所有与 Xcode 相关的事情一样。简单的重启为我解决了这个问题。

回答by kk78626

Hey i have same issue when i am trying to upload IPA on Appstore. I solved it when i checked that my Distribution provisioning profile was invalid. So just update provisioning profile,download then install and restart Xcode. Now archive and upload it on Appstore it will be done.

嘿,当我尝试在 Appstore 上上传 IPA 时,我遇到了同样的问题。当我检查我的分发配置文件无效时,我解决了这个问题。所以只需更新配置文件,下载然后安装并重新启动Xcode。现在存档并上传到 Appstore 就完成了。

OR

或者

Create IPA and upload via Application Loader.

创建 IPA 并通过 Application Loader 上传。

Good luck.

祝你好运。

回答by Ashvin Ajadiya

Will work for 100% sure.I had the same issue but its solved by below steps:

将 100% 肯定地工作。我遇到了同样的问题,但通过以下步骤解决了:

  1. Delete all profiles from: ~/Library/MobileDevice/Provisioning Profiles/
  2. Delete developer account from Xcode >> Preference >> Account >> Delete your Apple Id
  3. Delete derived data
  4. Restart machine
  5. Download your provisioning profiles which you require to submit app
  6. Open your project and clean it
  7. And try again for submit app.
  1. 从以下位置删除所有配置文件:~/Library/MobileDevice/Provisioning Profiles/
  2. 从 Xcode >> Preference >> Account >> Delete your Apple Id 中删除开发者帐户
  3. 删除派生数据
  4. 重启机器
  5. 下载您提交应用程序所需的配置文件
  6. 打开你的项目并清理它
  7. 并再次尝试提交应用程序。

I hope this will work for all.

我希望这对所有人都有效。

回答by Heider Sati

I was experiencing the exact same error hence being here (failed about 6 times over an hour).

我遇到了完全相同的错误,因此在这里(一个小时内失败了大约 6 次)。

I just tried again now (without changing anything), it worked by itself.

我现在又试了一次(没有改变任何东西),它自己工作了。

I read on the Apple-forums that it's an issue with Apple servers, nothing to do with your Xcode.

我在 Apple 论坛上读到,这是 Apple 服务器的问题,与您的 Xcode 无关。

I also read that others trying the upload via ApplicationLoader (Menu -> Xcode -> Open Developer Tool -> Application Loader), this will ask where your code is, you would then have to select your Archive (not the source code), you can upload your code this way if you need. I personally prefer the built-in Xcode instead.

我还读到其他人尝试通过 ApplicationLoader (Menu -> Xcode -> Open Developer Tool -> Application Loader) 上传,这会询问你的代码在哪里,然后你必须选择你的档案(不是源代码),你如果需要,可以通过这种方式上传您的代码。我个人更喜欢内置的 Xcode。

Works either way.

无论哪种方式都有效。

For the record, I am copying the thread from Apple Forums.

为了记录,我正在从Apple 论坛复制线程。

Cheers Heider

干杯海德

回答by Hsm

Uncheck "Include bitcode" box, worked for me.

取消选中“包含位码”框,对我有用。

回答by Fattie

Update June5 ...

6 月 5 日更新...

Apple appear to have fixed the current particularbug that was present for about the last week.

苹果似乎已经修复了大约上周存在的当前特定错误。

In short, you can upload with the blue "Upload to App Store..." button, rather than having to use the application loader.

简而言之,您可以使用蓝色的“上传到 App Store...”按钮上传,而不必使用应用程序加载器。



For June 1, 2017

2017 年 6 月 1 日

even more information, the seemingly failed uploads

更多信息,看似失败的上传

do indeed seem to go to the app store...!

确实似乎去应用商店...!

enter image description here

在此处输入图片说明

with each of the items there 208-231, I had tried to upload in the normal way, and it failed with the "Try Again (-22421)" code.

对于每个项目 208-231,我曾尝试以正常方式上传,但失败并显示“再试一次(-22421)”代码。

In fact, unnoticed by me, they were all going up to the app store, but it looks like they were just getting stuck on endless processing.

事实上,我没有注意到,他们都去了应用商店,但看起来他们只是陷入了无休止的处理中。

I then did I believe exactly what StevenOjo reported (yesterday) above:

然后我是否完全相信 StevenOjo 报道的(昨天)上面的内容:

  • Setting up an A NEW account on iTunes with a NEW email address

  • ALSO SET THAT UP ON DEVELOPER, remembering that, because Apple is the world's most idiotic organization, developer.apple is totally different from ituneconnect.apple

  • From my actual normal account, and this is IN DEVELOPER, NOT ITUNES CONNECT, I invited that new alter ego as an admin

  • Exporting the app from the organizer, as an IPA for app store distribution.

  • Logging into application loader with that new email and uploading the archive. It worked without any issues.

  • 使用新的电子邮件地址在 iTunes 上设置一个新帐户

  • 还要在 DEVELOPER 上进行设置,请记住,因为 Apple 是世界上最愚蠢的组织,因此 developer.apple 与 ituneconnect.apple 完全不同

  • 从我的实际普通帐户,这是开发人员,而不是 iTunes 连接,我邀请了新的另一个自我作为管理员

  • 从管理器导出应用程序,作为应用程序商店分发的 IPA。

  • 使用该新电子邮件登录应用程序加载器并上传存档。它没有任何问题。

It's possible it would actually work fine now with my usual account; I don't know.

现在使用我通常的帐户可能会正常工作;我不知道。

To be clear, after a very short time (say, two minutes), the final build (ie, 233 above) did indeed become "ready to test" as normal on the app store ..

需要明确的是,在很短的时间(比如两分钟)之后,最终版本(即上面的 233)确实在应用商店中像往常一样“准备好测试”了。

enter image description here

在此处输入图片说明

All the "dud" uploads seem to be stuck forever on processing.

所有“无用”上传似乎永远停留在处理过程中。

The staggering incompetence of Apple has reached "conspiracy theory" levels....

苹果惊人的无能已经到了“阴谋论”的地步……

It is literally not possible to hire programmers and sysadmins, who are this bad.

这是从字面上无法出租的程序员和系统管理员,谁是这个坏

There must be some sort of conspiracy theory, behind the utter fiasco that is Apple's provisioning. Maybe it's some sort of reverse-psychology marketing plot or something ....... who knows.

一定有某种阴谋论,在苹果供应的彻底惨败的背后。也许这是某种逆向心理营销阴谋之类的……谁知道呢。



Later the same day:

当天晚些时候:

I TRIED UPDATING itmstransporter:

我尝试更新 itmstransporter:

I then tried with a new build number using the normal "Upload to the App Store..." cheery blue button.

然后,我尝试使用正常的“上传到 App Store...”令人愉快的蓝色按钮使用新的内部版本号。

It did not work ...

这没用 ...

I then tried using Application Loaderas described above...

然后我尝试使用如上所述的Application Loader...

It DID work with ApplicationLoader.

它确实与 ApplicationLoader 一起工作。

Conclusion ...

结论 ...

Unfortunately, itmstransporter is probably not relevant.

不幸的是,itmstransporter 可能不相关。

:/ what a fiasco.

:/ 真是惨败。