Uploading or adding images to iOS device camera roll - aws-device-farm

I am testing an iOS mobile app on AWS Device farm that requires me to be able to select images from the iOS device. I cannot use the camera images on the device farm devices as they are dark and my testing requirement is to be able to use 'real' images. Is there a way to upload images to the iOS device/s that tests run on or easily add them to the devices as part of test setup? Thanks.

There is a way to add images to the app's bundle using the extra data feature of Device Farm.
The app should be able to access it using the bundle object and the file tree of the zip file uploaded to Device Farm. So the path to images would be something like: path/to/bundle/aatp/data/images
Assuming the zip uploaded has a directory called images.
Hth
-James

Related

Bluetooth share an mp3 file between iOS when only one phone has the app?

I am building an iOS app to match an android app that can send a raw mp3 file from an app to another phone that does not have the app. The file is store in the file structure.
I'd like to know if using GameKit or some other method will get me close to that. I need to send mp3 files such that the receiving iPhone does not need to have the app to store them in their iPod app.
Is this possible on iPhone? Or do I need to have both phones with the app installed?
Cheers
The Apple iPhone does not support receiving files via Bluetooth. Because of that it is not possible to receive file without an app. Also if you want to save the MP3 to device library, this is not possible too since you only have read access to the library.
But if you want to share files without using a client app you may upload the files to an HTTP based file sharing service and then you only need the URL at the client device.

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.

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.

trying to publish to app store - No provisioned iOS device is connected

Hi
I do not wish to start the iphone app executable on the device.
I just want to publish it to appstore.
so after following all steps I have in my folder:
MyAppName.app.dSYM
However from what I understood this is not enough i need to zip the app file... if I could zip this file and upload it to app store this would be great. But when I tried the application loader it didn't accept a zip with this file.
so in xcode I have choosen: device and not simulator, and it complains now when I build that the device is not connected (the device is not with me...) so my question is can I create (build) the the product.app so that I can then publish it to app store even when I don't have a device with me?
thanks
Assuming you have your App Store provisioning profile setup and selected, under the Build menu select Build and Archive it sounds like you are doing Build and Run (which is not what you want).
Then from the organiser you can Submit directly to the App Store, you don't even need application loader.
Hope this helps,
Oli

iPhone-SDK:Questions about iPhone RingTone and Video access:

I have two questions here.
1.) Is it possible to access ring tones/put our custom ring tones programmatically using our client app in iPhone? Does the latest SDK support?
2.) A client iPhone app - Is it possible to download a Video file from server and put into iPhone device any of the folder (or) Video folder?
Please reply if you know the details...
Clave/
You can't currently access
user-installed ringtones, or the
default system sounds.
Your application only has access to
its own "sandbox" of directories,
which includes folders for
Documents, Library/Preferences, tmp,
and the application bundle itself.
If your app downloads a video, it
cannot place it in the
iTunes-managed video library (ie,
you can't make it appear in the
"Videos" application for iPod touch
or the "iPod" application on an
iPhone).