Tuesday, December 27, 2011

iPhone : How to deploy your test app into real device for testing


There are different ways to deploy your test application to actual device. Here is one of them.

The three main steps for deploying app to the device is:

1. Configure Profile

1. Generate and distribute Certificate

2. Device Id (Get the Id of the device need to install)

3. App ID

a. Signup or Sign in to the Apple developer account. http://developer.apple.com/

b. Create App ID. Enter name and Bundle Identifier (com.abccompany.test).

c. Add the device need to deploy into the portal.

2. Download and Install (Provisioning Profile)

3. Build and Go (Build the app to device connected)


1. Obtain 40 character identifier from iphone which is connected to the system.

To connect follow:

· Open Xcode -> Window -> Organizer -> Devices

· The Identifier seems like 1bd4c7354ce9ebht75222396ead5b3a49190a8e4


2 2. Generate a certificate Signing request

· Open Keychain access application to do this.

· Goto Launchpad -> Utilities ->

. Open Keychain Access application. Goto Keychain Access -> Certificate Assistant -> Request a certificate from a Certificate Authority

· In Certificate Assistant window, enter your email address, check the radio button ‘Saved to dIsk’ and check the ‘Let me specify key pair information’. Click continue.

. Choose your directory for saving the certificate.

· Choose a key size of 2048 bits and use RSA algorithm.

. Click continue to generate and save the certificate.


3. Log into the iPhone Developer Program Portal http://developer.apple.com/devcenter/ios/




Friday, April 8, 2011

Under construction..

Wednesday, December 22, 2010

Log4j configuring email in liferay

Its very important to get the email when there an ERROR occurs in our application. So we dont need to search all the logs in the server to check when the error occurs whats the exception thrown.

Liferay version: 5.2.3 - 6.x

Step 1: Configure the log4j.properties

Step 2: Extend the SMTPAppender.java to use the liferay email configuration. By default it uses the SMTPAppender for sending the email. It may throw the error STARTTLS... So for skipping this error I used Liferay Mail Service for sending the email.

Step 3: By default the email is send for the Log Level ERROR and level which has higher priority. So if you need to send the email for particular exception use _log.error(e);

Eg:

public class Abc {
public static void Main(String args[]) {
Log _log = LoggerFactoryUtil.getLog(Abc.class);
_log.error("Its an error. Please fix it soon..");
}

}

Tuesday, June 8, 2010

Wait

Under construction!!!