How to create a folder/file on iPhone device Library? - iphone

I like to access the device Library folder (not app's document directory). Actually i am trying to create one file in Device Library folder and want to access this file from another app. Any idea ?

You can't, apps in the iOS are sandboxed and can only write in there own environment. Also there is no library directory.

Finally now it is possible with app extension, but after 3 years :)

You can use the keychain if you really want data transfer between applications.

Related

Browsing an apps folder structure on an iDevice

When I plug my iPhone into the computer can I access an apps folder structure that's on the phone? Either programatically or manually with a tool that doesn't involve jailbreaking.
Have you tried iExplorer? See if that satisfies your requirements.(It doesn't need the device to be jailbroken).
It cant be done without jailbreaking, you basically must create your app folder structure with xcode.

ios explore other application folder with jailbreak

I have an ipad jailbroken.
I need to write a program that can opens other file from other application.
ApplicationA is my app and I need to open a specific file in a folder called ApplicationB that is in var/mobile/applications
Is it possible on jailbroken device?
I'ms sure that is not possible in non-jailbrekon device for the sandbox.
Yeah, it's possible. You'll have to iterate through every folder in /var/mobile/applications/ to find the correct folder for the app that you're looking for. Then you can do whatever you want with that knowledge.

Reading iPhone files from PC / Mac programmatically

Applications like iPhone Explorer can show the contents for each installed iPhone application on Mac OS X (even on non-jailbroken devices) when iPhone is connected using USB-cable. I'm trying to do something similar, programmatically copy some files from my iPhone app's folder.
I have done some experiments with open-source frameworks/products built to use iTunes-framework, like iPhoneBrowser and MobileDevice Library. I can connect to iPhone, now the problem is how to enumerate Apps folder items? iPhoneBrowser or MobileDevice Library don't support or provide any easy way for that. Even when hardcoding my application path to iPhoneBrowser it still refuses to display the folder. iPhone Explorer can read the folder without any trouble on the very same device, so it is definitely possible.
Second problem is getting path to apps, on each device they have different path with some hash number folder names. How to 'decrypt' the paths so that I can access my app folder on every device?
the app enumerate use another protocol, you may find some in this https://github.com/phildrip/fruitstrap
I wrote a open source program that works on Windows, here is the github project url:
https://github.com/Moligaloo/iPhoneFS
It can access files on jailbroken iPhone/iPod/iPad (non-jailbroken devices files are limited accessible).
It can also enumerate apps on iDevice.

Transfer file from Mac/PC to iPhone App Document folder

I want to transfer file from system (mac/Pc), which is present on my iPhone wifi network, to the document folder of my iPhone App.The scenario of my App is this, it will browse the system which are present in it's network. select any file(such as .pdf or ,docx) from that system(mac/Pc), copy it into the document folder of the APP and than use it with in the APP.During my search i come across the link iPhone : Transfer of files from Mac/Pc to app i have not found the detail instruction document, how to use it. Is Apple support any API or farm work to do this ? Please guide me
This is called iTunes file sharing. In the most simple way, you simply set the UIFileSharingEnabled key in your Info.plist file to YES. See for example this tutorial.
Rewriting itunes is not a simple task but I recommend you a clever and easier solution:
Implement a simple webserver on your iOS app. Write a windows application which will connect to your iOS app through wifi network. Then transfer the necessary files this way: you will send a file to you app, then your app should save it in documents directory.

Transfer Zip file from iPhone app

I have an iPhone app that creates a zip file.
I need to provide an easy way to allow the user to transfer that zip file to their PC (not via any network connectivity, as this file could be rather large).
Any suggestions?
Currently there is no way to accomplish this. You cannot hook into the synchronization until the next release of iPhone OS.
However, it works fine in Android.
For development builds you can access the file through Xcode's Organizer, and save locally to the Mac. I am not sure what is required to permit the access, perhaps the signing certificate?
iPhone Explorer (now iExplorer) works to grab files stored in an app bundle. I use it all the time.