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

自古美人都是妖i 提交于 2019-12-20 14:13:06

问题


After updating my XCode to version 4.4 it seems to be impossible to retrieve Application Data from my devices.

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).

With Xcode 4.4 i get an error ("Permission Denied") when I try to download the Documents from the sandbox.

Is there anything new (maybe a new setting?) I have to change to obtain the Application Data from my device again?


回答1:


Temporary fix is using itunes to get the files from the document folder.

In your .plist -> Information property list -> add:

UIFileSharingEnabled (YES)

Rebuild and go to itunes and get the files from document folder.




回答2:


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.

AppDataInfo.plist
com.apple.PeoplePicker.plist

Then I deleted the app and all data off the device and reinstalled it using 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.

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.




回答3:


This bug appears to be fixed in Xcode 4.4.1




回答4:


I have been temporarily mounting Xcode 4.3.3 from a disk image and using Organizer there. Not the best solution, but seems like an "okay" workaround.

UPDATE: seems to be fixed in Xcode 4.4.1




回答5:


I'm seeing this problem also with Xcode 4.4, used iExplorer to get the files, someone else said PhoneView should should also work.




回答6:


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.

Hope it helps. Thank you :)



来源:https://stackoverflow.com/questions/11666570/xcode-4-4-permission-denied-when-trying-to-download-application-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!