how to upload data to apple developer device - ios

If I am using xcode's simulator I can upload data to the app folder (/APPID/Documents) easily.
Can push data directly to an developer device too?
The data itself is mainly xml files for the app to interact with.
The reason to do this is to make a mock-up for a presentation.

You can do that via the Organizer.
in Organizer->Devices
select the device on the left side
select the Application you are working on
on the bottom select "Download". This downloads a .xcappdata
Right click and "Show Package Contents" on the .xcappdata and there you'll see the Documents folder
Add what ever you want to the Documents folder
Go back to Organizer and click this time Upload, select the modified .xcappdata.
That should make the data available in the Documents file. Keep in mind that the app had to be installed on the device once, before you can access it on the Organizer.
Also, it could take quite some time if the data are heavy files. But as you just want the xmls it shouldn't be a problem.
[EDIT]

Related

How do I find out if an IOS app uses frameworks/framework libraries

How can I figure out if an app in the IOS appstore uses frameworks? I would like to be able to know if it uses frameworks and possible what frameworks are used, without actually downloading the app.
Secondly, how do i figure out the frameworks used if provided the app's ipa file?
Finding out what frameworks an app in the Appstore uses may be a futile process, but it is possible to find them if one has an ipa file. Here is the process:
Convert the ipa file to a zip file by renaming it to ".zip" instead of ".ipa". For example, "test.ipa" should be renamed to "test.zip"
Unzip test.zip using whatever tool you chose.
Navigate to the test/Payload. You should see a ".app" file in that location.
Right-click on the file and select "Show Package Content" in the popup menu.
Expand the frameworks folder to view the frameworks. Files within this folder have the ".dylib" extension.
You need an iOS device like iPhone / iPad / iPod with an AppStore account set up, a macOS device like iMac, Apple Configurator 2 app (AC2).
First of all you have to download / buy the app which you want to analyze on your iOS device then connect this device to the macOS device and launch the AC2 app. Once the app was launched go to account settings and connect to your AppleId account. Next, right click on the device icon and select "Add->Apps..." action. A modal window will present. Select an applications which you would like to analyze and then download those apps.
Once the applications will be downloaded the AC2 app will ask you to select an action. At this moment don't select any action, instead go to location " Open Finder and go to a folder "~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Caches/Assets/TemporaryItems/MobileApps" where are stored downloaded apps.
Last thing is to change the extension of the iPad file to zip, do it with Finder app in menu under right click select option "open archive". Once there, go to payload and frameworks folder which contains all frameworks used by the app.

transfer my own app from device to xcode

I have built an ios app which I have tested successfully on my ios device. Since last build Ive had to rebuild my laptop and as such Ive lost my xcode project. Is there a way I can transfer the app from my device back into xcode?
The way you are getting your thing is totally different. However you can recover some part of your project data like images, what framework you have used etc.
First you need to connect your device with your system, then open iTunes and select your app then download that app. Now you have to click on that app see option for Show In Finder and click it
If you see your .ipa file, then make it a zip of it and then unzipped it, a payload name folder will appear on your screen. you will see appName.app, right click on it and select show package contents. This will show the app package contents. You can recover few data from that. But if you are thinking to recover code level data then it is not possible.
And you need to make a backup of your project whenever you make any updations so that any accident happened does not affect your main project.
No that´s not possible to do... Next time use Source Control such as Git for example to keep track of your code and prevent this happening in the future (that´s one of many benefits of source control).

Check files in Documents, Library or tmp directory on iOS device

I am making on an app and want to get access to the directories that system create automatically when app installed on device. Of course when I use simulator I can find these directories without any problems, but how to open them on device. Maybe via iTunes or maybe Xcode has access to these directories.
The folders are below:
Why I need it:
Because after my app restore some products (iOS simulator does not support StoreKit) I have few records in the tmp folder in SQLite database.
#neilco , it's not necessary to use 3d party tools for this. In Xcode, go to organizer, select the connected device, "applications" tab, select desired application and hit "export" button below. This will export you app to your mac, so you can see your depicted folder structure, files' contents etc.
Take a look at using iExplorer as this allows you to views the folder structure of apps on a device.

View files in app's filesystem for iOS for testing?

I am working on an app right now that is supposed to generate a text document from an NSString , save it to the app's documents foldr, and then upload it to the iCloud.
I want to check and see if the file is actually being created and saved in the Documents folder in my app's Sandbox.
How do you look at the files saved on an iPhone? (Either on the phone
or when it is connected via USB to my Mac.)
This is just for testing purposes and all I want to do is view the file name and contents, not edit them in any way.
In addition to pdesantis's answer, you can achieve what you want through Xcode rather than relying on third-party tools. Open the Organiser, select the Devices tab, select Applications under the relevant device in the column on the left, then select the app you're interested in in the large area on the right and click Download at the bottom of the screen to grab its current local storage.
Try this
http://www.macroplant.com/iexplorer/

Get data from user test on device to mac

I'm doing some user tests of my new iOS app and store some test data in a plist. When I do that in the simulator it is easy to get that file for further analysis on my mac, but how can I easily get it from a real device? This will only be used during testing and will not be part of the final version.
Possible ways I have read about but not tried (in hope to get some directions here first):
E-mail attachment
Enable file transfer to iTunes
Jailbreak (but don't want to)
Currently what I am doing is to NSLog it and copy and paste from Xcode into Excel, but this requires that the device is tethered to my mac.
Any experience or advice on easiest way to get this done?
I sometimes use iPhone Explorer to do this, because the plist file I want is not in my Documents folder. I use it to navigate to the files associated with my app on the device. Just connect your device to your laptop, run iPhone Explorer and then use it to locate the plist file you want and drag and drop it wherever you want.
You can save data from Organizer. Just click on your device and it'll show in right pane. Files from documents folder and possibly other folders can be saved.

Resources