where is the file located in iphone after integrating a file to it via itune - iphone

By enable the option called
Application supports iTunes file sharing,
I can integrate a file ( example an image) into my device via iTune. My question is where is the location of that image in my device and are there any ways we can access it via xcode.
Please advice me on this issue if you have any ideas about this.
Thanks

In Xcode.... Organiser > Your Device > Applications > Click App > You can see the files in the sandbox

Each app is sandboxed. That means it has it's own filesystem generated by xcode (/library /documents) relative to the app. Your files are probably on [yourapp]/documents.

Related

How to read crash report from iPad using Windows

I am new to developing for ios using Marmalade and Visual Studio, so I need to know how to read crash report from iPad ? Crash report is on location /var/mobile/Library/Logs/CrashReporter/game.plist
How to read this file from windows ?
When you sync your iPad with iTunes, the crash report will be copied onto your computer. You can then find it in the location:
C:\Users\<Your Username>\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<Your iPad's Name>\<Crash Log Name>.crash
You need to sync your iPad to the iTunes, and it'll be available in your iTunes sync folder.
Also I once found a way to read those reports in iPad itself, it was in about section maybe. Do the search, you may find it.
The path is Settings > Privacy > Diagnostics & Usage > Diagnostics & Usage Data
Use iTunes software . it will help for you.

how to locate the file which is saved in documents folder of the iphone

I am creating a file pdf in iphone application and it is saved in the documents it work fine on simultor i can also see the files.but how can i see this file when run the app on iphone device is there any way to get the file using itunes or any utility.
You can use Organizer.So example...
You can use itools.
1. Install itools
2. Connect your device with computer and open itools.
3. Go to "Apps" Tab, select your app.
4. Click on "document" icon,your app's document directory is opened.
5. Select the file and click "Export."
I know this is a late answer, but just in case it can help someone.
If you want to transfer a document from your ios app to computer, enable File Sharing in your app. Set the boolean flag “UIFileSharingEnabled” in your info.plist. Now when you connect the device and scroll to the bottom in the Apps page in itunes, there you can see all the files that are in your Documents folder in your app.

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.

How to access iphone Memory card (SDcard) programmatically

I want to access sdcard of iphone, I have some question regarding this.
by searching little bit i think iphone donot support sdcard ? if it support SDcard then kindly tell how we access iphone expanded memory what is path path of external storage of iphone. for example as in android we can access sdcard directory by
Environment.getExternalStorageDirectory(); ( return path to sdcard in android )
how to see sdcard contents in emulator of like in eclipse we can see android's SDcard folder in Forlder explorer any thing like this is in iphone?
how to get list of sdcard contents.
There is no SD card.
Applications may only access their own sandbox Documents and cache folders. If you need to transfer files, you have three options:
E-mail.
iTunes File Sharing
iCloud
hello salman Roy First of all i want to tell you that there is no external sdcard like android in the iphone or ipad.it is all sandbox environment.And one more thing for the iphone development there is no emulator its a simulator.

Any way to get your SQLite DB off iPhone?

I'd like to analyze the data that I have in my iPhone app after doing some tests, and the data is in a SQLite database. Is there any way for me to be able to copy it off of the iPhone back to my laptop? I'm not aware of any mechanisms that allows me filesystem style access.
You don't need to turn on file sharing in the app to get this, you can get the data for any app you've built via Xcode's devices window.
In recent versions of Xcode (8 and up, I think), open this with Window menu --> Devices. Find the device in the device list and look at the installed apps list for the device. Each app that you've built and installed on the device will be listed (and maybe some others). Select your app and click the gear menu below the list. Clicking the "Download" item on the pop-up menu will enable you to copy the app's documents, library, and other directories to your Mac.
NB: This will download an .xcappdata file. Right-clicking on that and selecting "Show Package Contents" will allow you to drill down to the actual sqlite file.
In Xcode 6 this is available at:
Window -> Devices -> -> Installed Apps.
Select your application.
Click the gear icon -> "Download Container"
You can also use iExplorer (for Windows or Mac, free version available) to browse and copy data on the iphone, without needing to jailbreak it.
If this is your own application you can enable Application supports iTunes file sharing (UIFileSharingEnabled) in your applications plist and your database is stored in your documents directory of your application you will be able to easily access your database through iTunes.
UIFileSharingEnabled (Boolean - iOS)
specifies whether the application
shares files through iTunes. If this
key is YES, the application shares
files. If it is not present or is NO,
the application does not share files.
Applications must put any files they
want to share with the user in their
/Documents
directory, where is
the path to the application’s home
directory.
In iTunes, the user can access an
application’s shared files from the
File Sharing section of the Apps tab
for the selected device. From this
tab, users can add and remove files
from the directory.
This key is supported in iOS 3.2 and
later.
Other Options:
Jailbreaking your phone, adding afc2add through Cydia and then using some type of iPhone Explorer application.
Jailbreak your phone and install ssh and use a tool such as CyberDuck.
There are windows alternatives to both of those applications.
If your iPhone is jailbroken, you can access it through SSH. A program like WinSCP (on Windows) can allow you to connect to the phone and give you filesystem access. Then you can navigate to where your application stores the DB.
There are also multiple Filesystem applications out there that might allow you to do this, but I don't think they will give you the full extent if your phone is not jailbroken.
You can also use iMazing (for Windows or Mac, free version available) to browse and copy data on the iphone, ipad or ipod