Social Icons

twitterfacebookgoogle pluslinkedinrss feedemail
Showing posts with label iPhone Distribution. Show all posts
Showing posts with label iPhone Distribution. Show all posts

Saturday, April 9, 2011

iPhone Tutorials

iPhone Tutorials

This site contains a ton of fun tutorials – so many that they were becoming hard to find! So I put together this little page to help everyone quickly find the tutorial they’re looking for. Hope you enjoy! :]

Beginning iPhone Programming

iPhone programming is like a ladybug - fun and only a little scary!
iPhone programming is like a ladybug - fun and only a little scary!
If you’re completely new to iPhone programming, start here! First there’s a tutorial series that will walk you through the process of creating an iPhone app from start to finish – using the most common APIs that almost every app uses. Next there’s a tutorial about memory management – the area where beginners most often get confused about!

Game Programming with Cocos2D, Box2D, and Chipmunk

Ninjas Going Pew-Pew!
Ninjas Going Pew-Pew!
If you want to make games on the iPhone, the easiest way by far is to use the Cocos2D iPhone framework and the physics libraries that come with it – Box2D and Chipmunk. These tutorials will help get you started by showing you how to make some simple games and solve common problems.
In addition to these tutorials, you might be interested in the Cocos2D book Rod Strougo and I are working on.

Game Programming and Development

Tomato-San says: w00t, it's done!
Tomato-San says: w00t, it's done!
While we’re on the topic of game programming, here are a few posts with some tips and tricks for game developers.

Saving and Loading Data

Core Data Failed Banks Model Diagram
Core Data Failed Banks Model Diagram
Almost every app needs to save and load data on the iPhone – and there are many different ways to do so. In these tutorials, you can get hands-on experience with many of the most common methods.

Graphics and Animation

Welcome to Core Graphics 101!
Welcome to Core Graphics 101!
In order to be successful on the App Store these days, your app needs to look good. Here are a few tutorials that you can use to up the quality level of your apps, and your gain mad skills with graphics and animation programming.


Screenshot from BasicSounds sample project
Screenshot from BasicSounds sample project
When I first started iOS programming, I knew a WAV file played sounds and that was about it. These posts explain a lot about audio files and formats, and explain how you can play audio in your apps.

iPad Development

What it will look like when we're done!
What it will look like when we're done!
If you know how to program for the iPhone, it’s a simple matter to program for the iPad as well! These tutorials walk you through some of the differences and help get you started with some of the new APIs available on the iPad.

3rd Party Libraries

I have a soft spot for malteses!
I have a soft spot for malteses!
There are a lot of third party APIs and SDKs you might want to include in your apps. These tutorials cover a few of them and show you how to get started.

Training and Announcements

One day class introducing iOS programming for beginners!
One day class introducing iOS programming for beginners!
From time to time I announce upcoming training, books, and other types of announcements from this site. Here’s the news so far!


1) Integrate iAd 2) ??? 3) PROFIT!
1) Integrate iAd 2) ??? 3) PROFIT!
There’s always something that doesn’t fit anywhere else! Here’s a hodgepodge of other posts and tutorials you may find interesting.

Sunday, November 28, 2010

Developer-To-Developer iPhone App Distribution Without Ad-Hoc Provisioning

Developers can share iPhone applications that they’ve created with other iPhone developers without using ad hoc provisioning. Setting this up takes less than 5 minutes.
This is one of the method’s I’m considering for distributing CodePromo, my app that makes it easy to generate and share promo codes from the iPhone.
This article provides step-by-step instructions; it’s an expansion of the summary of the technique by Erica Sadun.


When you build and run on your development device Xcode first creates a device-compatible binary. and then signs it using your developer certificate. This latter step is what allows your device and its development provisioning profile to run the application. Apple provides tools that allow a binary’s signature to be replaced; if you’ve got a development certificate and a binary you can re-sign an app; it’s this re-signing that’s at the heart of this technique.

Preparing For Distribution

Step 1. Compile A Device-Compatible Binary

You create a device-compatible binary when you build to your device in Xcode. Open any iPhone project in Xcode and:
  1. In the Overview menu, choose iPhone Device for the Active SDK.
  2. While still in the Overview menu, chooseRelease for the Active Configuration. This will produce the smallest sized binary.
  3. Build the project using Build > Build from Xcode’s menu or by using the command-b keyboard shortcut.
Proceed to the next step after everything builds cleanly.

Step 2. Locate The Binary

Locate the compiled binary:
  1. Locate the Products folder under the project’s folder in the Groups & Files panel in Xcode. Expand it to show its contents.
  2. Locate the .app file for the app, right-click or command-click its icon, and click Reveal in Finder.
This’ll reveal the binary in the Finder.

Step 3. Create A Re-Signing Script

The binary you’ve created will only run on devices that have your development provisioning profile installed on them. For other developers to run your app they’ll have to re-sign the app using their provisioning profile. We’ll include a shell script to make it easier for them:
  1. Create a shell-script using the text editor of your choice.
  2. Paste the contents below into the editor.
  3. Replace the _APP_NAME_ in the shell script with the name of your app.
  4. Name it and save it somewhere convenient.
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
codesign -f -s "iPhone Developer"

Step 3. Bundle Items For Distribution Folder

We’ll distribute a zip containing the binary and helper script from the previous steps:
  1. Open a new Finder window, navigate wherever you want the folder to reside and create a new folder. Use the app’s name as it will appear on the springboard as the name of the folder.
  2. Copy the app’s binary and the helper script from the previous steps into the new folder.
  3. Zip the folder.
And you’re ready to distribute the app.
The next section of this article shows the steps the recipient uses to install the app onto their developer provisioned iPhone.

Installing The App

It’s straightforward to install an application prepared as above:

Step 1. Extract and Re-Sign The App

  1. Extract the contents of the zip to a convenient location.
  2. Open a terminal window and navigate to the folder containing the zip’s contents.
  3. Type from the command prompt to run the helper script to re-sign the binary. The script will output replaced existing signature if successful.

Step 2. Install The App

  1. Connect your phone to your computer and open Xcode.
  2. Use Xcode’s Window > Organizer, or the keyboard shortcut command-o, to open the Organizer.
  3. Select the phone from the DEVICES section in the left panel.
  4. Click the “+” beneath the Applications list/section of the Summary tab in the right panel, locate the .app file in from the zip, and click Open.
And that should do it. The app should now installed on the phone.


I created a rough ~2 minute screencast demonstrating both sides of this process. View it here, or in higher-res at Vimeo.

Friday, October 22, 2010

Creating an .ipa File for Your Ad Hoc Distribution

If you ever find yourself doing iPhone consulting then you will probably need to know how to create an .ipa file. An ipa file makes it easy to distribute apps to people. It’s part of the Ad Hoc app distribution process. iTunes Mac users don’t require an .ipa file to install an Ad Hoc app. They can simple drag the app and the provisioning profile into iTunes. On the other hand, Windows users will need an .ipa file in order to install the app on their device. The great thing about distributing via an .ipa file is Mac and Windows users can install the app in iTunes.

Get Twitter Fan Box Widget

Like Us On Facebook and Receive All Updates!

You can also receive Free Email Updates:

Powered By Tutorails