Thursday, February 9, 2012

iPhone : Application Life Cycle.

1. Develop

Using XCODE as primary tool, developers or iOS programmers develop the application and test using simulators, interface builders and other instruments or tools.

2. Test

Developed application needs to be tested on real-time environment. The developed application need to built and archived and then installed on the real devices. Testing can be done in both the ways...


i. Test in Real-Time : Used moslty during development phase, where devices are connected to Xcode where performance and debugging takes place.

ii. Test Over the Air (OTA) : Testing the application when its connected to the real world environment - Wi-Fi or Carrier Network.

3. Distribute

The tested application needs to be distributed in the App Store. So that the application can be accessible and experience to end-users. The application can be distrubuted as either free or for a purchase in the App Store.




For in-house apps :
If you develop your own iOS apps for use by your company, the iOS Developer Enterprise Program lets you deploy the in-house apps. The process for deploying an in-house app is:

•Register for the iOS Developer Enterprise Program.
•Prepare your app for distribution.
•Create an enterprise distribution provisioning profile that authorizes devices to use apps you’ve signed.
•Build the app with the provisioning profile.
•Deploy the app to your users.

iPhone : Understanding Profiles and Certificates.

There are 2 types of profile certificates for iOS:
1. Configuration Profiles :
Configuration profiles are XML files that contain device security policies and restrictions, VPN configuration information, Wi-Fi settings, email and calendar accounts, and authentication credentials that permit iPhone, iPod touch, and iPad to work with your enterprise systems. Configuration profiles quickly load settings and authorization information onto a device. Some VPN and Wi-FI settings can be set only by using a configuration profile.

Configuration profiles can be encrypted and signed, which lets you restrict their use to a specific device and prevents anyone from changing the settings that a profile contains. You can also mark a profile as being locked to the device, so once installed, it can be removed only by wiping the device of all data, or optionally, by entering a passcode.

With the exception of passwords, users cannot change the settings provided in a configuration profile.

2. Provisioning Profiles :
A provisioning profile is a collection of digital entities that uniquely ties developers and devices to an authorized iPhone Development Team and enables a device to be used for testing. A Development Provisioning Profile must be installed on each device on which you wish to run your application code. Each Development Provisioning Profile will contain a set of iPhone Development Certificates, Unique Device Identifiers and an App ID. Devices specified within the provisioning profile can be used for testing only by those individuals whose iPhone Development Certificates are included in the profile. A single device can contain multiple provisioning profiles.

Enterprise distribution provisioning profile can be used for a specific app or for multiple apps.

PS : An app won’t run if the distribution/provisioning certificate has expired.

Installing Applications on iPhone

PS : These steps are for Windows OS.

There are 2 means by which an iPhone application can be built and delivered for testing :

1. .ipa file ( iPhone Application Archive)
2. Application bundle folder. (Folder name usually looks like - .app)

To install iPhone application on to the physical device you need to user either iTunes (Apple's computer program to manage content on any Apple products like iPhone, iPad, iPod .. .) or iPhone Configuration Utility.

Steps to install the application to test using iTunes :
Pre-Requisites : iTunes software program installed in system, application to test (.ipa files / Bundle Folder) - Connect the iPhone to PC and follow the below steps :
1. Launch the iTunes.
2. Under Library Category - Click on Apps.
3. Drag and Drop the test files (.ipa file or Bundle Folder) to iTunes > Library > Apps .
4. Click on the 'Device Name' listed under the Devices category.
5. Click on the 'Apps' from the top tabs.
6. Select the checkbox for 'Sync Apps'.
7. Select the checkbox to the application you need to install.
8. Click on 'Apply' and 'Sync'

The selected application will be installed in the device.

The same process is to be followed for both the types of a test builds (.ipa file or Bundle folder)
For bundle fodler, just drop the folder (test.app) to the iTunes > Library > Apps and then follow the same steps from 4 - 8.

Note: Applications will not be installed unless the required and VALID Provisioning Profile is installed on the device.


Steps to install the application to test using iPhone Configuration Utility (IPCU) :
Pre-Requisites : Download IPCU (http://support.apple.com/kb/DL1466 or http://www.apple.com/support/iphone/enterprise/ ) and install the configuration utility, application to test.
1. Connec the device to PC.
2. Launch the IPCU.
3. Click on Applications (Library > Applications)
4. Drag and Drop the Testing files into Application Space (.ipa files or Bundle Folder)
5. Click on the 'Device Name' under the 'Devices' category.
6. Click on Applications Tab.
7. Click on the 'Install' button against the application you need to install.

Note: Applications will not be identified unless the required and VALID Provisioning Profile is installed on the device.

The same steps can be followed for installing applications on any Apple products. iPhone,iPad,iTouch,iPod... .