简体   繁体   English

尝试下载应用程序数据时XCode 4.4“权限被拒绝”

[英]XCode 4.4 “Permission denied” when trying to download Application Data

After updating my XCode to version 4.4 it seems to be impossible to retrieve Application Data from my devices. 将我的XCode更新到4.4版之后,似乎无法从我的设备中检索应用程序数据。

In Xcode 4.3 (and all previuos version) I downloaded my Application Data (like SQLite databases and files I created) through the organizer (Organizer -> Devices -> "Device" -> Applications -> "Application" -> Download). 在Xcode 4.3(以及所有previuos版本)中,我通过组织者(管理器 - >设备 - >“设备” - >应用程序 - >“应用程序” - >下载)下载了我的应用程序数据(如我创建的SQLite数据库和文件)。

With Xcode 4.4 i get an error ("Permission Denied") when I try to download the Documents from the sandbox. 使用Xcode 4.4,当我尝试从沙箱下载文档时,我收到错误(“权限被拒绝”)。

Is there anything new (maybe a new setting?) I have to change to obtain the Application Data from my device again? 有什么新东西(可能是新设置吗?)我必须更改才能再次从我的设备获取应用程序数据?

Temporary fix is using itunes to get the files from the document folder. 临时修复是使用itunes从文档文件夹中获取文件。

In your .plist -> Information property list -> add: 在.plist - >信息属性列表中 - >添加:

UIFileSharingEnabled (YES) UIFileSharingEnabled (是)

Rebuild and go to itunes and get the files from document folder. 重建并转到itunes并从文档文件夹中获取文件。

I am having the same problem and will give a little more information: 我遇到了同样的问题,并会提供更多信息:

Even though Xcode gives the "Permission Denied" error, it does export two files into a xcappdata file and does not even export the "Documents" folder. 尽管Xcode提供了“Permission Denied”错误,但它确实将两个文件导出到xcappdata文件中,甚至不导出“Documents”文件夹。

AppDataInfo.plist
com.apple.PeoplePicker.plist

Then I deleted the app and all data off the device and reinstalled it using Xcode. 然后我删除了应用程序和设备上的所有数据,并使用Xcode重新安装它。 I exported the data after running the app and generating a log (log saved into the documents folder). 我在运行应用程序并生成日志(日志保存到文档文件夹中)后导出数据。 This new log file was properly exported inside the "Documents" folder, but Xcode still generated the "Permission Denied" error. 这个新的日志文件已在“Documents”文件夹中正确导出,但Xcode仍然生成“Permission Denied”错误。

After further running the app and generating logs, attempting to export the new data resulted in identical exports as the the first export after reinstall. 在进一步运行应用程序并生成日志后,尝试导出新数据导致导出与重新安装后的第一个导出相同的导出。

此错误似乎在Xcode 4.4.1中得到修复

I have been temporarily mounting Xcode 4.3.3 from a disk image and using Organizer there. 我一直在暂时从磁盘映像安装Xcode 4.3.3并在那里使用Organizer。 Not the best solution, but seems like an "okay" workaround. 不是最好的解决方案,但似乎是一个“好的”解决方法。

UPDATE: seems to be fixed in Xcode 4.4.1 更新:似乎在Xcode 4.4.1中修复

我在Xcode 4.4中也看到了这个问题,使用iExplorer获取文件,其他人说PhoneView也应该可以工作。

Sorry for late reply for this question. 很抱歉这个问题迟到了。 I thought its worth putting up if anyone comes across this situation. 如果有人遇到这种情况,我认为值得提出。 The best way to get hold of the data is by directly accessing application folder by using an Application called "iPhone Explorer" or "iExplorer" both are free and will let you directly access iOS device file structure and you can copy Documents folder from it. 获取数据的最佳方法是使用名为“iPhone Explorer”或“iExplorer”的应用程序直接访问应用程序文件夹,这两个应用程序都是免费的,您可以直接访问iOS设备文件结构,并可以从中复制Documents文件夹。

Hope it helps. 希望能帮助到你。 Thank you :) 谢谢 :)

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

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