Xcode 9.2 上传到 App Store 失败,出现描述长度和无效工具链错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47644270/
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-09-15 10:27:47  来源:igfitidea点击:

Xcode 9.2 Upload to App Store fails with description length and invalid toolchain errors

iosxcode

提问by JuJoDi

I've read through a bunch of forums including here:
https://forums.developer.apple.com/thread/87862
and some Stack Overflow posts.

我已经阅读了很多论坛,包括这里:
https: //forums.developer.apple.com/thread/87862
和一些 Stack Overflow 帖子。

I have tried modifying my plist using the proposed solution of

我尝试使用建议的解决方案修改我的 plist

find?Products/?-name?Info.plist?-print0?|?xargs?-0n1?plutil?-replace?BuildMachineOSBuild?-string?16A323

in the archive directory that I'm trying to load, and I'm still receiving the error below. I believe I have valid Xcode and Mac OS versions. I'm running Xcode 9.2 which was released today and High Sierra 10.13.1. Why does my upload fail with these errors and how can I fix it?

在我尝试加载的存档目录中,但我仍然收到以下错误。我相信我有有效的 Xcode 和 Mac OS 版本。我正在运行今天发布的 Xcode 9.2 和 High Sierra 10.13.1。为什么我的上传失败并出现这些错误,我该如何解决?

upload error messages

上传错误信息

The errors in text (to make this post more searchable):

文本中的错误(使这篇文章更易于搜索):

The following issues occurred while distributing your application.

? iTunes Store Operation Failed
description length:2651858

? iTunes Store Operation Failed
ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds."

分发您的应用程序时出现以下问题。

? iTunes Store 操作失败
描述长度:2651858

? iTunes Store 操作失败
错误 ITMS-90534:“工具链无效。新应用程序和应用程序更新必须使用公共 (GM) 版本的 Xcode 6 或更高版本、macOS 和 iOS SDK 或更高版本构建。不要提交使用测试版构建的应用程序软件,包括 beta macOS 版本。”

回答by Clouds

Right-Click on the archive file (.xcarchive) > Show Package Contents > Products > Applications > Right-Click on the app file > Show Package Contents > Double-Click on Info.plistto edit it

右键单击存档文件 (.xcarchive) > 显示包内容 > 产品 > 应用程序 > 右键单击​​应用程序文件 > 显示包内容 > 双击Info.plist进行编辑

Change value of DTXcodeBuildfrom 9C40bto 9C40

DTXcodeBuild 的值从9C40b更改为9C40

Re-submit and it will work

重新提交,它会起作用

Edit/Disclaimer: this is just a trick to bypass the upload process, iTunesConnect still doesn't allow submission with 11.2 so this is not the right solution.

编辑/免责声明:这只是绕过上传过程的一个技巧,iTunesConnect 仍然不允许使用 11.2 提交,所以这不是正确的解决方案。

回答by Max Power

I started with several "iTunes store operation failures". While fixing the other errors, I keep trying to fix this "description length" error too - but it always failed. So I solved all other errors first and suddenly this error was gone too.

我从几个“iTunes 商店操作失败”开始。在修复其他错误的同时,我也一直试图修复这个“描述长度”错误——但它总是失败。所以我首先解决了所有其他错误,突然这个错误也消失了。

I BELIEVE this error depends on other errors. The last error I fixed was called "Storyboard file not found")

我相信这个错误取决于其他错误。我修复的最后一个错误称为“找不到故事板文件”)

Xcode 9.2

Xcode 9.2

回答by Kaixin Lian

UPDATE: Although my option may let you upload the package to iTunesConnect successfully, but may fail when you click Submit for Review.

更新:虽然我的选项可以让您成功地将包上传到 iTunesConnect,但是当您单击提交以供审核时可能会失败。

Check this screenshot

检查此屏幕截图

Right-Click on the archive file (.xcarchive) > Show Package Contents > Products > Applications > Right-Click on the app file > Show Package Contents > Double-Click on Info.plist to edit it

右键单击存档文件 (.xcarchive) > 显示包内容 > 产品 > 应用程序 > 右键单击​​应用程序文件 > 显示包内容 > 双击 Info.plist 进行编辑

Change DTXcodeBuild's value from 9C40bto 9C40and it will work.

DTXcodeBuild的值从9C40b更改为9C40它将起作用。

回答by Antoine Cointepas

There is a discussion on this subject : https://forums.developer.apple.com/thread/93253They advise to wait for the deployment of the new Xcode version number on the backend or come back to Xcode 9.1, it seems it works.

有一个关于这个主题的讨论:https: //forums.developer.apple.com/thread/93253他们建议等待后端部署新的 Xcode 版本号或返回 Xcode 9.1,它似乎有效.

UPDATE : Change the DTXcodeBuild doesn't work

更新:更改 DTXcodeBuild 不起作用

回答by Nitesh Borad

Hard Clean Productworked for me.

Hard Clean 产品对我有用。

Hard clean the product by Command + Shift + Alt + K, then upload a new build to AppStore.

通过Command + Shift + Alt + K硬清理产品,然后将新版本上传到 AppStore。

I hope this will work for you too.

我希望这对你也有用。

回答by Michael Ploeckinger

This issue was solved for me with installing the latest stable release of Xcode 9.2 (mac OSX Sierra 10.12.6)

通过安装最新的稳定版 Xcode 9.2 (mac OSX Sierra 10.12.6) 为我解决了这个问题

回答by sharky

Already Fixed, just try again to submit the app.

已修复,只需再次尝试提交应用程序。

回答by sharky

I found a workaround it: Download Xocde 9.1 from https://developer.apple.com/download/more/

我找到了一个解决方法:从https://developer.apple.com/download/more/下载 Xocde 9.1

Make a fresh archive then upload it. It worked for me.

制作一个新的存档然后上传它。它对我有用。

P.S. I did not send for review but I sent it to internal testers including myself.

PS 我没有送审,但我把它发给了包括我自己在内的内部测试人员。