简体   繁体   English

点播资源上传失败

[英]On-demand resources uploading failure

Recently I have faced with problem of uploading on demand resources.最近遇到了按需上传资源的问题。 I am using Xcode 9.0 for uploading app to AppStore and every uploading finishes successfully.我正在使用 Xcode 9.0 将应用程序上传到 AppStore,并且每次上传都成功完成。 But looking at iTunes Connect build details I can see, that on-demand resources are enabled, but there are 0 assets packs for this build.但是查看 iTunes Connect 构建细节我可以看到,按需资源已启用,但此构建有 0 个资产包。

There is one more interesting moment in this problem.这个问题还有一个更有趣的时刻。 Build number 3 of my app also was uploaded with on-demand resources and everything works great with that build.我的应用程序的构建号 3 也上传了按需资源,并且一切都与该构建完美配合。 But builds number 4 and 5 doesn't have assets packs included.但是 4 号和 5 号版本不包含资产包。 I reviewed changes in application - there are no changes connected with on-demand resources at all.我审查了应用程序中的更改 - 根本没有与按需资源相关的更改。

In Xcode->Build Settings -> Assets ->Embed Asset Packs in Product Bundle is set to No. Also, size of one asset pack is around 5MB, total size of all packs around 150MB.在 Xcode->Build Settings -> Assets -> Embed Asset Packs in Product Bundle 中设置为 No。另外,一个资产包的大小约为 5MB,所有包的总大小约为 150MB。

Maybe, someone had this problem too?也许,有人也有这个问题? Thanks.谢谢。

UPDATE I have checked Product folder inside the Xcode archive - there are all 36 assets packs, but iTunes Connect still shows 0 packs.更新我已经检查了 Xcode 存档中的 Product 文件夹 - 共有 36 个资产包,但 iTunes Connect 仍然显示 0 个包。

UPDATE 2 It seems, that it happened not once.更新 2看来,它没有发生过一次。 Developers had the same problem one year ago.一年前,开发人员也遇到了同样的问题 I think, we should report a bug to Apple.我认为,我们应该向 Apple 报告错误。

UPDATE 3 We tried to upload app with on-demand resources using Application Loader, but result was the same.更新 3我们尝试使用 Application Loader 上传带有按需资源的应用程序,但结果是一样的。

UPDATE 4 We tried to revert code to version where everything works great with on-demand resources and upload the same binary with different version number to iTC, but result is the same.更新 4我们尝试将代码恢复到在按需资源上一切正常的版本,并将具有不同版本号的相同二进制文件上传到 iTC,但结果是相同的。

UPDATE 5 We received an answer from Apple Developer Technical Support (DTS)更新 5我们收到了来自 Apple 开发人员技术支持 (DTS) 的答复

Thank you for contacting Apple Developer Technical Support (DTS).感谢您联系 Apple 开发人员技术支持 (DTS)。 Our engineers have reviewed your request and have determined that you are experiencing a known issue for which there is no known workaround at this time.我们的工程师已审核您的请求,并确定您遇到了一个目前没有已知解决方法的已知问题。

I will post any updates here connected to this issue.我将在此处发布与此问题相关的任何更新。

In Xcode 10 it won't allow ODR Anymore unless you go back to legacy mode so this works for me在 Xcode 10 中,除非您回到旧模式,否则它不再允许 ODR,所以这对我有用指示

Unfortunately I cannot provide a solution to your problem... only tell you we have the same problem and what we've tried so far.不幸的是,我无法为您的问题提供解决方案……只能告诉您我们遇到了同样的问题以及到目前为止我们已经尝试过的问题。

We have not changed anything connected with ODRs and every IPA uploaded to iTunes Connect shows "0 asset packs".我们没有更改与 ODR 相关的任何内容,上传到 iTunes Connect 的每个 IPA 都显示“0 个资产包”。 The build currently available on the App Store has the same set of asset packs and is listed correctly in iTunes Connect.目前在 App Store 上可用的版本具有相同的资产包集,并在 iTunes Connect 中正确列出。

We've tried the following:我们尝试了以下方法:

  1. creating a clean build;创建一个干净的构建;
  2. changing the version and build numbers;更改版本和内部版本号;
  3. uploading with the Application Loader instead of Xcode;使用 Application Loader 而不是 Xcode 上传;
  4. validated the IPA - it does include the OnDemandResources directory with the correct number of items and files that look fine -;验证了 IPA - 它确实包含 OnDemandResources 目录,其中包含正确数量的项目和看起来不错的文件 -;
  5. using a different Mac to upload;使用不同的 Mac 上传;
  6. deleting everything in the "DerivedData" directory.删除“DerivedData”目录中的所有内容。

iTunes Connect still insists that all the uploaded IPAs use On Demand Resources but have no asset packs, and if you install them through TestFlight they consider the ODR tag as invalid. iTunes Connect 仍然坚持所有上传的 IPA 都使用 On Demand Resources 但没有资产包,如果您通过 TestFlight 安装它们,他们会认为 ODR 标签无效。 This doesn't happen when installing the App with Xcode, then the ODRs work as expected.使用 Xcode 安装应用程序时不会发生这种情况,然后 ODR 会按预期工作。

We've already written to Apple (both the iTunes Connect team and as a technical support ticket).我们已经写信给 Apple(iTunes Connect 团队和技术支持票)。

We will probably try more things while we wait for Apple's response.在等待 Apple 的回应期间,我们可能会尝试更多的东西。

- ——

update:更新:

Also tried uploading the commit that 'represents' the App currently published, simply changing the version number.还尝试上传“代表”当前发布的应用程序的提交,只需更改版本号即可。 It didn't work, asset packs still not recognized.它没有用,资产包仍然无法识别。

One thing that might have changed since we uploaded is that we installed Xcode 9.1 beta.自从我们上传以来,可能发生的一件事是我们安装了 Xcode 9.1 beta。 We don't use the beta for uploading, nor are the command line tools set to use the beta version of said tools.我们不使用测试版进行上传,也没有将命令行工具设置为使用上述工具的测试版。

(Edited) We were struggling with the same issue for about a week but tried uploading a new build today, and though it still says: On Demand Resources Yes | (已编辑)我们在同一问题上苦苦挣扎了大约一个星期,但今天尝试上传一个新版本,尽管它仍然说:按需资源是 | 0 Asset Packs ... it turned out the build works just fine. 0 资产包……事实证明构建工作得很好。 Perhaps there was some change today and you should try a new build and see if it works.也许今天有一些变化,你应该尝试一个新的构建,看看它是否有效。

We tried most of the options mentioned above before, that is rebuilding the project, using Application Loader, updating Xcode etc. but it still didn't work so we just continued to upload and test the testflight build.我们尝试了之前提到的大部分选项,即重建项目、使用应用程序加载器、更新 Xcode 等,但仍然无法正常工作,因此我们继续上传并测试 testflight 构建。

(I know it's not much of an answer and would post it as a comment but looks like it's not possible without enough reputation) (我知道这不是一个答案,并将其作为评论发布,但看起来没有足够的声誉是不可能的)

今天发生在我身上,这是在TARGET下链接的资产图像-> Resource Tags检查是否在那里添加了来自资产的任何图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM