Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode uploading data files to iPad "Permission Denied"?

Tags:

xcode

ios

ipad

I am trying to upload some modified data files to my app using XCode 5. My app takes makes modifications to an sqlite database that I want to be able to restore easily for testing purposes.

So I downloaded the datafiles from the app (containing the db) with the intention of reuploading it later after the app does some modifications to the db.

I download the files through the Organizer -> My iPad -> Applications -> Download (under Data files in Sandbox). I want to reupload by the Upload button right next to it.

However when I try to upload it returns the error "Permission Denied". There is nothing in the device logs indicating what exactly what permissions I need.

Does anyone know of the proper build settings or device settings I need to be allowed to upload modified datafiles for my App?

like image 567
jmathew Avatar asked Oct 15 '13 16:10

jmathew


2 Answers

I've found that the cached Snapshots can interfere with the upload process. If you go into the downloaded app data folder and remove the Snapshot image, then try to re-upload to the device, it should work.

like image 129
BenW Avatar answered Oct 03 '22 07:10

BenW


Verify the App isn't running on the device (even in the background), as that can lock files in its data directory.

like image 20
RyanR Avatar answered Oct 03 '22 07:10

RyanR