如何使用Xcode6.2导出iOS应用程序的共享容器? [英] How to export shared container of an iOS App with Xcode6.2?

查看:133
本文介绍了如何使用Xcode6.2导出iOS应用程序的共享容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的iOS应用程序中,我们使用共享容器在我们的主iOS应用程序及其扩展(特别是WatchKit扩展)之间共享文件,使用 [NSFileManager containerURLForSecurityApplicationGroupIdentifier:] 方法。出于调试目的,我们需要访问此共享容器的内容,因此我们尝试使用Xcode中的Devices窗口导出整个App容器:

In our iOS app we utilize a shared container to share files between our main iOS app and its extension (specifically WatchKit Extension), using [NSFileManager containerURLForSecurityApplicationGroupIdentifier:] method. For debugging purposes we need to access the content of this shared container, so we've tried to export the whole App container using the Devices window in Xcode:

但是,共享存储不包含在容器,可能是因为它位于设备本身的不同路径上。

But, the Shared storage is not included in the container, probably because it sits in a different path on the Device itself.

问题是我们如何获得共享容器,如果可能的话?

The question is how can we get the shared container, if this is even possible?

推荐答案

WWDC的Xcode团队成员告诉我这是不可能的(在撰写本文时,Xcode 7.3& 8 beta 1)。我已经提交了一个雷达,我建议所有人投入或评论,以便我们获得这个功能。

I've been told by Xcode team members at WWDC that this is not possible (at time of writing, Xcode 7.3 & 8 beta 1). I've filed a radar, which I recommend everyone dupe or comment on so we can get this functionality.

这篇关于如何使用Xcode6.2导出iOS应用程序的共享容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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