Copy Files into Application Sandbox
jtothebell opened this issue · 5 comments
Sorry if this is the wrong place for this, but I was wondering if there is any documentation or examples about how to transfer files into an app's sandbox. I think that should be possible based on #4 and #6 in the "What can this project do for me" section. I'm able to access my device, get a list of apps installed, find the app I'm looking for and get its container path, but I'm not sure where to go from there. Hopefully if someone can point me in the right direction I can add another demo method to the demo project.
Also, when I try to build the Anthem project I get the following error:
"error: -fobjc-arc is not supported on platforms using the legacy runtime
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1"
and since Anthem won't build I cant build the SDM_MD_Demo
EDIT: sorry, just got anthem to build by switching "Build Active Architecture Only" to "Yes" in the build settings.
Anthem is going to be the Obj-C wrapper and is nowhere near ready to use at all. I should remove that from master and put it into a separate branch.
File access is there in a rudimentary sense at the moment, AFC works, I haven't gotten to wrapping it properly with dealing with app specific sandboxes to make it easy to use. The functionality is there, just need to make a few more changes to get all the individual parts of the AFC protocol to send and receive properly.
Thanks for your fast response.
Do you have any idea when you might get to wrapping that functionality? And if it will be a little while, do you think it would be worthwhile for someone with very little low-level C experience (me) to attempt it?
Fairly soon, i just need push the last few AFC commands into the repo. My current understanding of it says that it wouldn't be difficult to access a particular app directory and copy files in and out, but i would need to double check and test that before saying one way or another.
First (real) update to the AFC code was pushed over the weekend.
AFC was completed on friday and now application installation and transfer are working, so i am going to close this out.