Chapter 8. Submitting Your App To iTunes

Finally, the moment you’ve been waiting for: submitting your completed app to iTunes. There are several steps to the process and you’ll want to have all your ducks in a row before you get started. At a minimum, you’ll need the following to complete the App Store submission process:

1 comment

  1. tarzan son Posted 11 days and 16 hours ago

    Ok, before I submit an app. I just want to let you know that I didnot learn how to create an app that would even be recognized as an app. what we or this book created (the app) doesn't even have any advance techniques. If I had bought this book hoping that it would help me create a real app I would be sadly disappointed. In fact, I would be furious and burn this book. I know this book is missing a lot of features and I shouldn't judge it too harshly. After all, the content of this book is great for beginner like myself. But i'm looking for more sophisticated device like how Tarzan is curious about the Car drove by the British. Tarzan doesn't want to know how to drive. Tarzan want to build his own car.

    p.s I tried to comment on the front page using the "comment on this whole book" but it didn't work.

Add a comment

Note

It’s fine with me if you submit the sample Kilo application to iTunes. The App Store reviewers might not be thrilled, but that’s anyone’s guess; I really don’t know what they’ll do. At the very least, you’ll have to choose an alternate name because I already submitted Kilo and the App Store does not allow duplicate names.

Just to be on the safe side, and in the interest of making the App Store a richer place for users, I would encourage you to make meaningful changes to the app before submitting it. Maybe even morph it into an entirely different app! If you’d like to let me and other readers know about your cool new app, please visit http://forums.oreilly.com and add a link and description of what you’ve created!

These steps should all be fairly straight-forward except for the last two: creating a distribution profile for the app, and preparing the application binary. We’ll cover those two in detail next.

No comments yet

Note

Wherever I refer to Kilo in this chapter, please substitute the name you are going to use for your app.

Creating an iPhone Distribution Provisioning Profile

In Chapter 7, Going Native, you created a Development Provisioning Profile that allowed you to test your app on an actual iPhone. Now, you need to create a Distribution Provisioning Profile in order to submit the app to iTunes.

  1. Navigate to the iPhone Developer site (http://developer.apple.com/iphone/) and log in.

  2. Click iPhone Developer Program Portal in the right sidebar.

  3. Click on Provisioning in the left sidebar.

  4. Click on the Distribution tab.

  5. Click the New Profile button.

  6. Choose App Store as your distribution method.

  7. Enter a profile name (e.g. Kilo Distribution Provisioning Profile).

  8. If you have not created a Distribution Certificate, you should do so before proceeding. If you see a link on this page labeled “Please create a Distribution Certificate,” click it and carefully follow the instructions. You’ll be making a couple of trips into the Keychain Access application (located in /Applications/Utilities) to create certificate signing requests and to install signed certificates that you download from the portal into your own keychain.

  9. Select the appropriate App ID (Figure 8.1, “Create a distribution provisioning profile in the iPhone Developer portal.”).

  10. Click the Submit button (you’ll be returned to the Distribution Provisioning Profile list view).

  11. Refresh the page until the Download button appears (Figure 8.2, “Refresh the distribution profile list until the download button appears.”).

  12. Click the Download button to save the profile to your local download directory (usually the Downloads folder in your Home folder).

  13. Drag the downloaded profile onto the Xcode icon in the dock.

Figure 8.1. Create a distribution provisioning profile in the iPhone Developer portal.

Create a distribution provisioning profile in the iPhone Developer portal.

Figure 8.2. Refresh the distribution profile list until the download button appears.

Refresh the distribution profile list until the download button appears.

Install the iPhone Distribution Provisioning Profile

Now that the profile is in Xcode, you need configure the project to use it.

  1. Open Kilo in Xcode if it’s not already open.

  2. Select Edit Project Settings from the Project menu (the project settings window will appear).

  3. Click the Build tab if it’s not already active.

  4. Select Distribution from the Configuration popup.

  5. Select “Settings Defined at This Level” from the Show popup.

  6. Locate Code Signing > Code Signing Identity > Any iPhone OS Device in the main area of the window.

  7. Click the popup list to the right of Any iPhone OS Device to display a list of profile options (Figure 8.3, “Select the Distribution Identity.”).

  8. Locate your Distribution Provisioning Profile in the list and select the distribution identity directly beneath it (Figure 8.4, “The Distribution Identity will be located directly beneath the Distribution Profile”).

  9. Close the Project Info window.

Figure 8.3. Select the Distribution Identity.

Select the Distribution Identity.

Figure 8.4. The Distribution Identity will be located directly beneath the Distribution Profile

The Distribution Identity will be located directly beneath the Distribution Profile

Renaming the Project

Before you submit your app, you need to rename it from PhoneGap to Kilo. To do so:

  1. Open the project in Xcode.

  2. Select Rename from the Project menu (Figure 8.5, “Select Rename from the Project menu.”).

    2 comments

    1. Marc Melcher Posted 21 days and 3 hours ago

      I don't see the Rename option under the Project Menu.

    2. Marc Melcher Posted 13 days and 16 hours ago

      Only xcode 3.2 has the option to Rename built in.

    Add a comment

  3. Type Kilo in the “Rename project to” field (Figure 8.6, “Type Kilo in the “Rename project to” field.”).

  4. You can leave “Take Snapshot before renaming” checked if you want to save the state of the project prior to making the change, but it will significantly increase the amount of time it takes to process the request.

    2 comments

    1. Andrew Posted 29 days and 1 hour ago

      This seems so weird, what is this Snapshot anyway? People might be curious, can you explain what's going on that takes forever?

    2. Jonathan Stark Posted 28 days and 15 hours ago

      I'll update with brief explanation about snapshots.

    Add a comment

  5. Click the Rename button.

You will see a series of green arrows that indicate that the changes have taken effect (Figure 8.7, “The green arrows indicate that the Renaming process succeeded.”).

Figure 8.5. Select Rename from the Project menu.

Select Rename from the Project menu.

Figure 8.6. Type Kilo in the “Rename project to” field.

Type Kilo in the “Rename project to” field.

Figure 8.7. The green arrows indicate that the Renaming process succeeded.

The green arrows indicate that the Renaming process succeeded.

Prepare the Application Binary

Next, we need to build the application executable and prepare it to be uploaded.

  1. Select iPhone Device - 3.1.2 (or the current version of the iPhone OS) from the Active SDK popup, then select it again and pick Distribution. This should set the target to something like “Device - 3.1.2 | Distribution.”

  2. Select Clean All Targets from the Build menu.

  3. Select Build from the Build menu. You may be prompted to allow the application codesign to access your keychain. Allow it to do this so it can sign the app.

  4. Make sure that you didn’t get any errors.

  5. Reveal the app in the Finder (Figure 8.8, “Reveal the application in the Finder.”).

  6. Compress the app into a zip archive (Figure 8.9, “The application must be compressed as a zip archive to be uploaded.”).

Figure 8.8. Reveal the application in the Finder.

Reveal the application in the Finder.

Figure 8.9. The application must be compressed as a zip archive to be uploaded.

The application must be compressed as a zip archive to be uploaded.

Submit Your App

Now that you have everything you need:

  1. Login to iTunes Connect (https://itunesconnect.apple.com/).

  2. Click on Manage Your Applications.

  3. Click on the Add New Application button.

  4. Follow the onscreen instructions to proceed with the submission process.

  5. Wait ;-)

If all goes well, you should see your app listed as In Review (Figure 8.10, “The uploaded app will appear in your list with a status of In Review.”).

Figure 8.10. The uploaded app will appear in your list with a status of In Review.

The uploaded app will appear in your list with a status of In Review.

While You Wait

Congratulations! You’ve officially submitted your first app to the iTunes App Store! Now what? You’ll probably have to wait a week or two to hear back from Apple. Here are some things that you can do in the meantime to keep yourself busy:

1 comment

  1. Leslie Murphy Posted 12 days and 21 hours ago

    Can you provide a bit more how-to on the pure HTML web app? Is it possible to create an icon on the iPhone to launch it? Can multiple apps share storage if they have the same root domain?

Add a comment

Further Reading

If you find yourself in a jam, here are some helpful resources:

You must sign in or register before commenting

Atom Icon Comments on this page or Comments on the whole book.