开发过程中的初始安装标签用法和验证 [英] Initial Install Tags usage and verification during Development

查看:114
本文介绍了开发过程中的初始安装标签用法和验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我们的应用程序中使用ODR,并创建了标签并将其分组在Prefetched下的Initial Install Tags选项下.

I am trying to use ODR in our application and have created Tags and grouped it under Initial Install Tags option under Prefetched.

  1. 我不确定如何使用开发配置文件在模拟器和设备上进行验证.
  2. TestFlight是验证初始安装标签使用情况的唯一选择吗?
  3. 即使对于标记为初始安装"的资源,我也必须使用NSBundleResourceRequest吗?我对初始安装标签"的理解是,它将随应用程序自动下载.因此,我认为不需要此请求.如果我错了,请纠正我.

推荐答案

根据WWDC https://developer.apple.com/videos/play/wwdc2015/214/

1)您可以通过使用X中的调试导航器的磁盘部分来验证ODR 代码

1) You can verify ODR by using the disk section of debug navigator in X Code

但是,从XCode 8.1 beta版本开始,初始安装标签不起作用.如您在所附的屏幕截图中所见.

However as of XCode 8.1 beta the initial install tag does not deem to work as expected. As you can see in the screenshot attached.

2)根据我对WWDC的理解,只需在XCode中运行应用程序,即可在存档版本和模拟器上使用.不仅是TestFlight

2) According to the my understanding of WWDC this should work on Archive version and also on Simulator by simply running the app from XCode. Not only TestFlight

3)我认为您不必使用单独的提取请求,但是由于这似乎是使其正常工作的唯一方法,因此应将其视为解决方法,而不是解决方案.根据文档

3) I do not believe that you should have to use a separate fetch request, but as this seems to be the only way to get it working, this should be seen as a workaround rather than a solution. According to the documentation

初始安装标签.资源下载与 该应用程序.资源的大小包含在以下资源的总大小中: 在App Store中的应用程序.标签不存在时可以清除 至少由一个NSBundleResourceRequest对象访问.

Initial install tags. The resources are downloaded at the same time as the app. The size of the resources is included in the total size for the app in the App Store. The tags can be purged when they are not being accessed by at least one NSBundleResourceRequest object.

因此,我认为此功能无法按记录和预期的方式运行,应该向Apple提交错误.这似乎是苹果论坛上的结论

So in my opinion this feature is just not working as documented and expected and a bug should be filed with Apple. That seems to be the conclusion on Apple Forums

https://forums.developer.apple.com/thread/9530

https://forums.developer.apple.com/thread/9530

这篇关于开发过程中的初始安装标签用法和验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆