OGeek|极客世界-中国程序员成长平台

标题: ios - 在 iTunes Connect 上上传产品内容时出错 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:34
标题: ios - 在 iTunes Connect 上上传产品内容时出错

我正在研究用户购买时从 iTunes 下载内容的项目。但我无法使用应用程序加载器在 iTunes 上上传产品内容。上传时出现以下错误

错误:错误 ITMS-4000:“包不能包含两个具有相同名称‘mzl.kzekbupn.png’但大小或校验和不同的文件。”在软件/软件元数据/SoftwareInAppPurchase

enter image description here



Best Answer-推荐答案


哈哈!

我明白了!

所以,我收到了完全相同的消息,除了我在提示“screenshot.jpg”。

我上传了多个应用内购买,“screenshot.jpg”是供审核的屏幕截图:在应用加载器的应用内购买部分的“信息”选项卡中。它一定是在某个地方被损坏了或什么的。

App Loader 会创建一个包含所有应用内购买的 xml 文件(见下文),如果多次引用的文件的校验和存在差异,则会创建此错误。即使我已经停止使用“screenshot.jpg”,在创建 xml 文件时仍然会引用它。

所以,我的解决方案是通过应用程序的所有购买发布相同的屏幕截图。 App Loader

所以在完成了我所有的应用内购买并添加了新的屏幕截图后,我就可以通过了。

可能有一种更优雅的方式来访问 xml 文件,但我发布了对我有用的方法。

祝你好运!

            <in_app_purchase>
                <locales>
                    <locale name="en-US">
                        <title>Shakespeare: Antony and Cleopatra</title>
                        <description>A Shakespeare classic.</description>
                    </locale>
                </locales>
                <review_screenshot>
                    <file_name>screenshot.jpg</file_name>
                    <size>74368</size>
                    <checksum type="md5">d41d8cd98f00b204e9800998ecf8427e</checksum>
                </review_screenshot>
                <read_only_info>
                    <read_only_value key="iap-status">Ready to Submit</read_only_value>
                </read_only_info>
                <product_id>scenerunner.scenerunner.antony_and_cleopatra</product_id>
                <reference_name>Shakespeare: Antony and Cleopatra</reference_name>
                <type>non-consumable</type>
                <products>
                    <product>
                        <cleared_for_sale>true</cleared_for_sale>
                        <intervals>
                            <interval>
                                <start_date>2017-06-22</start_date>
                                <wholesale_price_tier>3</wholesale_price_tier>
                            </interval>
                        </intervals>
                    </product>
                </products>
                <has_hosted_content>true</has_hosted_content>
                <software_assets>
                    <asset type="in-app-purchase-content">
                        <data_file>
                            <file_name>Antony_and_Cleopatra.pkg</file_name>
                            <size>78782</size>
                            <checksum type="md5">44c282b4fe09115b7d8ed0f6415a215a</checksum>
                        </data_file>
                    </asset>
                </software_assets>
            </in_app_purchase>

关于ios - 在 iTunes Connect 上上传产品内容时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44607860/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4