Archive for the ‘iPhone SDK Help’ category

Adhoc installation issues on Windows PC

November 5th, 2009

As an iPhone developer I have lately been observing many errors while installing Adhoc builds on my testing/friends iPhones or iPodTouches. Many of them have been really hard to fix and some have just been “nothing but frustrating”.

There was a case where what ever I did, did not work. Many attempts to install using iTunes after trying to change certificates, provisioning profiles have failed. Even the “iPhone Configuration Utility” failed to install the app. I had actually lost all hopes getting it installed on this device. But after a little prayer and just a little hope left, it just worked.

Why did it work? I do not have any answer. Can’t still figure it out. And that was the first time I tried installing an Adhoc build on a device for a Windows user!! Is it really so hard?

adhoc_issues_on_windows

Could not install application on device: Error: A signed resource has been added, modified or deleted.

The image that you see here, is another failed attempt at installing an Adhoc build for a Windows user. But this got resolved real quick.

The reason: Mac allows file names to contain some special characters (like ‘*’) which are not valid on a Windows PC. This is one thing you can check if you come across errors of above kind. But not all of them will be the same as above.

If any one else has faced a similar problem and found a definitive solution, let us know here.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • N4G
  • Twitter
  • Yahoo! Buzz
Tags: iphone adhoc installation, iphone adhoc issues, iPhone App Developers, iPhone app Developers help, iPhone App Development help, iphone configuration utility

Utility for iPhone app developers: iSimulate

November 4th, 2009

Tired of having to install your application on a device for every little change that you make in your code? No!! You test it on the iPhone Simulator!!
What if the application uses GPS and Accelerometer? You cannot test it on the iPhone Simulator.

Here comes iSimulate from vimov to your rescue. People at vimov have created a really useful utility for developers to test their applications which employ GPS and Accelerometer on the iPhone Simulator. Lots of time saved between installs right!!

iSimulate is an application which you download and install on your device to send accelerometer and GPS details to the app running on the iPhone Simulator. The app must of course embed the iSimulate library to be able to receive those details. All it takes to install the iSimulate app on your device, embed the library in your application and start using it is just around 5 minutes.

The newer releases of iSimulate even support video streaming. You can actually see the game or app on your iPhone or iPodTouch even though it’s running on the iPhone Simulator. This enables you to provide very accurate touches to the Simulator. This is a giant leap forward from it’s first days where you had screen filled with Accelerometer graph to simulate touches!!

iSimulate really makes testing your apps easy and quick. Go get your apps on to AppStore that much quicker!!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • N4G
  • Twitter
  • Yahoo! Buzz
Tags: iPhone App Developers, iPhone Application Development, iPhone SDK Help, iphone simulator

iPhone SDK 3.1.2. released for iPhone app Developers

October 9th, 2009

Apple released iPhone SDK 3.1.2 on Thursday Oct 8, the release email sent to iPhone App Developers by Apple states this:

iPhone SDK 3.1.2 is now available on the iPhone Dev Center. If you have updated your iPhone app development devices to iPhone OS 3.1.2, you will need to download and install the new iPhone SDK to continue your iPhone app development.

A version of iPhone SDK 3.1.2 is also available to developers who are running Mac OS X Snow Leopard. Please ensure you select the appropriate SDK based on your iPhone app development environment.

iPhone SDK 3.1.2 is now available

iPhone SDK 3.1.2 is now available

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • N4G
  • Twitter
  • Yahoo! Buzz
Tags: iPhone App Developers, iPhone App Development, iPhone Development help, iPhone OS 3.1.2, iPhone SDK 3.1.2, xcode 3.1.4, xcode 3.2.1

Effective ways of handling Interruptions in iPhone App Development

August 18th, 2009

It is a known and acknowledged fact that user’s experience with your iPhone app is of paramount importance in keeping them glued to it. Towards that, handling interruptions gracefully in an iPhone app plays a key role.

iPhone being a “one app at a time” device, apps get interrupted by incoming Phone Calls, SMSs, Calendar Events, Alarms or Push Notifications from other apps on the device.
The iPhone SDK provides a few methods in UIApplicationDelegate which can be implemented to handle the interruptions and keep user’s experience as flawless/seamless as possible.

The Interruption
- (void)applictaionWillResignActive:(UIApplication*)application

This method lets your application know that it is about to be interrupted by the iPhone OS. The name of the method suggests that your app will no longer be active, and will not respond to any user actions until the interruption is taken care of. An interruption like an incoming phone call or an SMS can either be accepted or dismissed by the user, and this is where you have to perform all tasks necessary to resume if the user chooses to leave the application. If the app was a game, it could save any game state needed for a resumption later.

The Resumption / Interruption Dismissed
- (void)applicationDidBecomeActive:(UIApplication*)application

When your application is about to become active again, this method is called by the iPhone OS. If the user decides not to leave the application and dismisses the interruption this is a good place to allow the user resume using the application. Since the application has not yet been closed, all the required state to resume is still in memory and continuing using the app is really as simple as a Pause/Resume feature.

The Interruption Accepted
- (void)applicationWillTerminate:(UIApplication*)application

If the user decides to leave the application or accepts an interruption, this method call from the iPhone OS notifies us of that intention. This is the place where you save all necessary state of the app/game to resume later.

The best place to save all game/app state to resume later is “applicationWillResignActive”. The simple reason being, all iPhone interruptions need user’s input to either accept or dismiss the interruption. This action from the user might needs a few seconds of his/her time to understand what the interruption is and what to do with it. This duration should be just enough for a well written application to save all state. Whereas, in the case of the application being closed by the user, iPhone OS wouldn’t wait for the app to complete saving state. The time available is really short and many applications might fail to save state.

Since there are multiple reasons and ways for an app being closed, state saving method calls need to be placed both in “applictaionWillResignActive” and “applictaionWillTerminate”. But ensure you don’t waste precious time in saving app state at both places. If the user closes the application by pressing the “Home” button, use “applictaionWillTerminate” to save state and necessary cleanups. If the application is being closed due to an interruption, save state in “applictaionWillResignActive” and perform any necessary cleanup in “applictaionWillTerminate”.

So, make it a point to use various UIApplicationDelegate methods to maintain user experience and reusability of the app. Keep your users glued to your application or game and return to it after an interruption.

For more tips and strategies on iPhone App Development, click here. For iPhone app marketing tips, try this link.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • N4G
  • Twitter
  • Yahoo! Buzz
Tags: iPhone App Development, iPhone Development help, iPhone Development tips, iPod Touch Development tips

iPhone development tip for iPhone OS 3.0.1

August 13th, 2009

Many of my friends woke up to a rude shock when they found that their devices updated to iPhone OS 3.0.1 were not supported by iPhone SDK 3.1 Beta 3 for development.

If you too are experiencing the same problem, here is the solution to continue iPhone development with iPhone SDK 3.0 for your iPhone running iPhone OS 3.0.1.

1. Log-in to your MAC with an Admin account and launch the Terminal application (You will find it in /Applications/Utilities)
2. Copy and Paste the following line into the Terminal window
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1

Note: If you have not installed iPhone SDK 3.0 in the default location “/Developer”, replace the “/Developer” directory in the above line as appropriate.

You can download the iPhone 3.0.1 Advisory guidelines document from iPhone Dev Portal

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • N4G
  • Twitter
  • Yahoo! Buzz
Tags: iPhone 2G, iPhone 3G, iPhone 3Gs, iPhone Development help, iPhone Development tips, iPhone OS, iPhone OS 3.0.1