posted by: Ralf Rottmann | posted @ Monday, November 10, 2008 4:04 PM | View blog reactions

Update, November, 21st 2008: Apple has made some significant changes (simplification) with the release of version 2.2 of the iPhone SDK. This post relates to version 2.1. I'm going to update it accordingly to cover both versions later today. Until this note is gone, please do be aware that this post only relates to version 2.1!

Given the wide popularity, the enormous amount of comments and personal feedback I've received so far for my first post about iPhone mobile provisioning and the ongoing discussions in various developer communities related to this topic, I've decided to write a follow-up on how to address mobile provisioning issues that tend to arise time and again.

While Apple has made some enhancements to the documentation available in the iPhone Developer Program Portal – you need to be logged in to access the linked content – there still seem to be many problems out there with respect to setting up and maintaining an iPhone development environment.

I'm trying to provide as much detail as possible for the more subtle parts of the process. I highly recommend to go through all the documentation made available by Apple before consulting my post – specifically you should carefully go through this guide. This post should be considered complimentary.

As always I don't take any warranty for the material provided here. Use at your own risk!

Prerequisites

Here is a brief overview of the environment I'm working with:

  • I'm an approved and paying member of the iPhone Developer Program.
  • I'm using an Intel iMac with Mac OS X 10.5.5, Xcode 3.1.1 and the final version of iPhone SDK 2.1.
  • All my iPhones are running Apple's regular firmware version 2.1 (5F136). I've got legal net-lock and sim-lock free iPhones. No jailbreaks. No hacks.
  • I'm not using any methods to circumvent Apple's code signing practices and generally do not endorse those.

The Developer Program Portal

Before you begin to develop applications for the iPhone make sure you log into the iPhone Developer Program Portal. Note: There is a difference between the Developer Center and the Developer Program Portal. Access the Program Portal from within the iPhone Dev Center by clicking the iPhone Developer Program Portal link:

200811101250.jpg

iPhone Developer Program

Let me clarify an aspect which has caused some confusion in the past: To start developing for the iPhone you do not need to be a paying, registered member of the iPhone Developer Program. The SDK is available for free and can be downloaded after a brief registration. Once you've got the SDK you can create applications and test them on the iPhone Simulator that ships with it.

If, however, you want to deploy your application to an actual device – either an iPhone or an iPod Touch – you need to be a paying, registered developer.

While the simulator is good to get up to speed I highly recommend to not underestimate the differences between the real device and the simulated environment. Simulator applications not only run on a different architecture (Intel vs. ARM) but I've also run into situations where stuff perfectly worked in the simulated environment but failed on the device. In addition the layout on the iPhone is sometimes slightly (a few pixels) different than the one on the Simulator. If the UI of your application requires pixel precise positioning, you have to deploy to the device to get things right.

Apple has created a complex security ecosystem to endorse its FairPlay digital rights management and to control digital distribution of iPhone applications.

Certificate Mania and Provisioning Profiles

Let's clarify some terminology:

Development Certificates

Every approved iPhone developer needs a Development Certificate. The steps required to create your certificate include issuing a certificate signing request using the Certificate Assistant provided by the Mac OS X Keychain Access tool. Follow Apple's guide to create your certificate. It's very detailed and appropriate for this part of the process.

Mobile Provisioning Profiles

While the certificates stay on your Mac and are used to digitally sign the applications you've created, Mobile Provisioning Profiles are transferred to your development devices. Currently there are three types of mobile provisioning profiles:

Development Provisioning Profiles are used exhaustively during the development of an application. They allow Xcode to directly deploy an application to a development device and attach the debugger. Development Provisioning Profiles only work reliably on devices that have been connected to Xcode at least once and "switched into development devices". You should in general not use Development Provisioning Profiles to provide your friends with your applications for testing.

Ad Hoc Distribution Profiles are used to deploy your application to devices outside your development environment, primarily for beta testing. You can register up to 200 devices and use an Ad Hoc Distribution Profile to allow their owners to run your application. Ad Hoc Distribution Profiles usually are installed onto the devices via iTunes or the iPhone Configuration Utility.

App Store Distribution Profiles are used to distribute your application via Apple's iTunes App Store. They can only be used for this purpose. You cannot install applications bundled with an App Store Distribution Profile manually to any device. It has to go through the App Store.

In short: Use a Development Provisioning Profile yourself, use an Ad Hoc Distribution Profile for your friends and use the App Store Distribution Profile for Sale!

Getting ready

Installing the certificates

  • Go to the Certificates > Development tab.
  • Download the WWDR Intermediate Certificate.
  • Download your personal Development Certificate by clicking the Download button in the Actions column.
    200811101336.jpg
  • Install the two downloaded certificates by double-clicking them. This will launch the Keychain Access application. Make sure you install to the login chain which should be selected by default. Validate that your keys have been correctly installed by opening Applications > Utilities > Keychain Access and expanding the iPhone Developer: Your Name section in the login Keychain.
    200811101346.jpg

Registering devices

In order to use Development Provisioning and Ad Hoc Distribution Profiles, you need to register the devices with Apple.

  • Open iTunes with your device connected.
  • Select your iPhone in the Devices pane and choose the Summary tab.
  • Click once on the Serial Number: label. Do not click on the serial number, you need to click on the label.
    200811101358.jpg
  • iTunes will reveal your Device Identifier.
    200811101359.jpg
  • Press Command-C to copy the Device Identifier to the clip board.
  • In the iPhone Developer Program Portal go to Devices > Manage.
  • Click Add Devices.
  • Enter a speaking name into the Device Name field and paste the Device Identifier into the Device ID field.

In case you want to send your app to your friends to involve them into beta testing, ask them for their Device Identifiers and register their devices, too.

Generating Application IDs

App IDs are an important piece of the overall iPhone developer infrastructure and one, where I found many people struggling with subtle details. Unfortunately neither the iPhone Developer Program Portal's How to section nor Apple's guides are extremely clear on what needs to be done to get things going.
An App ID is a unique digital fingerprint that OS X iPhone uses to grant your application access to a portion of the Keychain and is one part of your provisioning profiles. In the App IDs section of the iPhone Developer Program Portal create an App ID if you have not yet done so. You can give your App ID an arbitrary Name. The name is used for reference purposes only.
The ID itself however must be unique. Therefore most developers use a reversed version of their domain name (or their companies domain name) as it is pretty common for namespaces. In case you don't want to register every single application you're going to build, you can create a single App ID which serves as a namespace for multiple apps. For example, I'm using the following ID:

com.straight2market.*

Important Note: Apple generates a Bundle Seed ID for every App ID you create and appends it to your App ID as a prefix, however, the Bundle Seed ID must not be considered as a part of your App ID. So whenever you're prompted for your App ID anywhere in Xcode or elsewhere, you must only use your App ID without the Bundle Seed ID. To make this very clear: In my case in the ID column of the Portal it says C5LRL9WHCV.com.straight2market.*. The "C5LRL9WHCV" part is the Apple generated Bundle Seed ID and only the com.straight2market.* part is my App ID namespace!

  • Go ahead and create your App ID by going to App IDs > Manage in the iPhone Developer Program Portal
    200811101415.jpg

Setting up Mobile Provisioning Profiles

Next set up at least two Mobile Provisioning Profiles, one for Development and one for Ad Hoc Distribution. Provisioning Profiles serve as the glue between certificates, App IDs and devices and link them together.

Set up your Development Mobile Provisioning Profile first:

  • In the iPhone Developer Program Portal go to Provisioning > Development.
  • Click Add Profile.
  • Enter a speaking Profile Name. I highly recommend to put the term "Development Profile" somewhere into your profile's name. This will make it more easy to differentiate the profiles later on when you set them up in Xcode. My profile is called "straight2market Dev Profile".
  • Select which certificate should be used for the profile.
  • Select the App ID for the profile.
  • Check all devices that should become deployable targets for the profile. Note: You might want to register additional devices at a later point of time. This is no problem at all. You can modify an existing profile at any time and include additional devices. Apple will recreate the modified Provisioning Profile instantaneously and you can simply download and use the updated version.

Here's a screenshot of my Development Provisioning Profile with eight registered iPhones:

200811101427.jpg

You are going to use the Development Mobile Provisioning Profile along with Xcode to deploy directly from Xcode to your device.

Next set up an Ad Hoc Distribution Provisioning Profile to allow distribution of your application to friends and others:

  • Navigate to Provisioning > Distribution in the iPhone Developer Program Portal.
  • Click Add Profile.
  • Select Ad Hoc. (I'm not going to cover App Store distribution in this post!)
  • The rest of the process equals the one for Development Provisioning Profiles.
  • Again, I highly recommend to name your profiles something like "[my company name] Ad Hoc Distribution Profile".

Download the two profiles you've just created and store them in a save location. If you've followed my advice and provided speaking profile names, the files you're going to download will have speaking file names, as well.


Installing Mobile Provisioning Profiles

Once you've downloaded the profiles the next step is to install them. The installation requires two steps: First, let Xcode know about the profiles. Second: Sync them to the device(s).

In order to install the profiles to your system you've got a couple of options:

  • Drag the .mobileprovision files downloaded from the iPhone Developer Program Portal to the Xcode dock icon.
  • Or: In Xcode select Window > Organizer. In the Devices pane select a connected device. In the Provisioning section of the Summary page click the [+] button. Navigate to your profile file.
  • Or: Drag the .mobileprovision files downloaded from the iPhone Developer Program Portal to the iTunes dock icon.
  • Or: Download the iPhone Configuration Utility which is available as a free download for Mac OS X and Windows. (If you're managing multiple devices and don't have Xcode, I highly recommend to use the iPhone Configuration Utility instead of iTunes as it gives you more control.)

Once you've installed the profiles verify that they have been copied (and renamed) to ~/Library/MobileDevice/Provisioning Profiles.

The next time you sync your device (or deploy an application to it via Xcode) the profiles will be installed. Verify that your device shows all of the profiles by going to Settings > General > Profiles.

200811101516.jpg

This installation experience is an area, where I've seen people going literally nuts. Especially if you've played around with profiles a lot your system might be in a state where nothing seems to work anymore.

You might have seen 0xe800003a or 0xe8000001 error codes and frequently have read the annoying "Your mobile device has encountered an unexpected error (0xE8000001) during the install phase: Verifying application" error message.

Here are the good news: While others have stated they resolved these issues by reinstalling the iPhone SDK or even restoring their iPhone to factory state I never ever had to go that far in order to fix things. I've got a pretty complex setup comprising multiple provisioning profiles in parallel and multiple iPhones running more than a single profile. I do use more than a single certificate, too. And while I certainly ran into these errors, too, I've always been able to fix everything by just checking all the nitty gritty details and verifying that I've got everything configured right. I never needed a restore or reinstall. And you won't either!

So before you're deciding to delete stuff and to start over again, I'd like to encourage you to read through the Apple guides and take the stuff provided in this post as additional material and I promise you, you will be operational soon! There should be almost no need to reinstall the SDK or restore the device!

Whatever method you've selected to install the profiles, at the end of the day your profiles will be stored in ~/Library/MobileDevice/Provisioning Profiles. During installation your mobile provisioning files get a unique name. If you want to know which file maps to which of your profiles, you can open the files with a text editor (Right-click and Open With... TextEdit) and search for <key>Name</key> . The string immediately following this key maps to the speaking name you've selected during profile creation.

Here is an important tip: In case you're continuously experiencing wired issues, go and empty the ~/Library/MobileDevice/Provisioning Profile folder. Don't worry! You can download your profiles as often as you want through the Portal. Emptying this folder makes 100% sure that no old, outdated or corrupted provisioning profiles are left. In addition you should manually delete installed profiles from your iPhone by selecting Settings > General > Profiles and Remove for each.

Setting up Xcode

If you've made it up to this point, half of your journey is done. Overall the next part – getting Xcode up to speed – is pretty straight forward. There are again some subtle details you should be aware of, but again, it can be done. You don't have to reinstall the SDK. You don't have to restore your device. Just be patient and follow along. :-)

Provisioning Profiles

The first thing you want to make sure is that Xcode knows about your provisioning profiles. Launch Xcode. Go to Window > Organizer. Select your connected iPhone in the Devices pane. Make sure you see both profiles in the Provisioning area of the Summary page and both are checked:

200811101521.jpg
Note: I've got an additional, grayed out profile here which I use for iTunes App Store distribution. You might not find that in your environment.

The next time Xcode talks to your device it'll make sure that the checked profiles will be installed in case they are not there yet. As a reaction to this post ZDNet's Ed Burnette remarked, that in his situation he had to manually delete the profiles and add them again. So in case you already had profiles installed, you might want to remove them here and add them again.

Project Settings in Xcode

Let me say this first: If you found this post, you've been there, you've done this before. You might have gone through this a couple of times. Please, stay tuned and do it again. I promise, at the end you'll have a working environment.

Open your Xcode project. In case you've got none at hand, just create a new one to follow along.

There are a couple of things you have to do before you can compile for device deployment. Unfortunately there also is a difference between deploying for Ad Hoc Distribution and deploying simply to your connected development device. I'll guide you through both.

Deploying to your locally connected development device

You got to tell Xcode about the App ID you're going to use. Remember: You've created a wildcard App ID (com.straight2market.*) in the iPhone Developer Program Portal before.

In the Resources group of the Xcode Project Explorer find the Info.plist property list and select it. The Property List editor will show you the contents of the file. Make sure that the Bundle identifier falls into the namespace you've creates via the wildcard App ID.

By default it is:

200811101535.jpg

If for example you've created the App ID com.straight2market.* and are going to create a calculator app, you might want to change it into com.straight2market.Calculator. As long as the Bundle identifier matches your App ID namespace it's fine. Please note that Bundle identifiers have to be unique on the device. Therefore two apps must not share the same Bundle identifier.

Note: It is perfectly legal to just directly type in the Bundle identifier with the Property List editor. Yet there is a more elegant alternative. As you can see in the above screenshot by default Xcode uses a placeholder named ${PRODUCT_NAME:identifier}. You can set the contents for this placeholder by right-clicking the top most node in the project tree and selecting Get Info (or going to Project > Edit Project Settings), selecting the Build page and typing Product Name into the search field. The value you're assigning here will be taken by Xcode to replace the variable in Info.plist.

So, here is what I usually do:

1. Change the Bundle identifier property in Info.plist:

200811101543.jpg

2. Configure the application name in the Build settings for the project:

200811101544.jpg

Important Note:

One of the aspects I've found not widely known but causing much confusion is that while Xcode lets you edit Build settings and others for the non active configuration, you should not do so! This is so super important, that I'd like to go into more detail.

In various Xcode windows you can see and change the active configuration (highlighted in red below).

200811101549.jpg

When you go to Project > Edit Project Settings (or right-click on the root node in the project tree and select Get Info) you can adjust various settings. The editor allows you to modify everything for each configuration. So if for example your active configuration is Debug you could still make changes to the Release configuration.

200811101554.jpg

Make sure, you're making changes to the active configuration. This might be fixed in future Xcode versions but currently if you edit settings for a non active configuration, Xcode sometimes gets things wrong. As an example Xcode might not offer you the correct Mobile Provisioning Profiles. I've also seen projects where instead of the correct names of the profiles their unique identifier was shown, some 30 digit hexadecimal code. This might lead to all sorts of issues later on and actually can cause code signing to fail.

Again: In case you want to make changes to the Project Settings of a non active configuration, first activate the configuration and then adjust its changes.

Another aspect many people don't understand is why some settings appear in bold and others don't. The answer is easy: Xcode allows to define project settings on various levels. You edit the top most level if you go through Project > Edit Project Settings or right-click on the top project node and select Get Info. You can also adjust settings on a lower level. If you right-click the project node in the Targets group, you can override settings for individual targets.

XCode indicates adjustments made on the current level in bold.

If you made sure that you're editing the active configuration, there are a couple of things you've got to do. Unfortunately things are different depending on whether you configure for development, for Ad Hoc distribution and for App Store distribution. Here is a run down on all three options:

Setting up for development

To be clear: With "setting up for development" I mean you're setting up a configuration which will allow you to directly deploy to the device from within Xcode. You're not planning to hand over built apps to your friends. You're not planning to upload to iTunes Connect!

Go to Project > Edit Project Settings (or right-click the top most node in the project explorer and select Get Info).

Verify you're changing the active configuration. (Sorry if I repeat myself here.)

Scroll down to the Code Signing section. Change the value of the Any iPhone OS Device property in the Code Signing Identity section from whatever it says to exactly:

iPhone Developer: <your name>

Replace <your name> with precisely the name you've used to create your certificate. If you're not sure use the Mac OS X Keychain Access utility to look it up. Also make sure that there is a blank between the colon and the name. Here is how I've set up things:

The name in my certificate:

200811141432.jpg

And the settings in Xcode:

200811141434.jpg

Next in the Code Signing Provisioning Profile section change the value for the Any iPhone OS Device property to reflect your developer mobile provisioning profile:

200811141436.jpg

I once again - I promise it's the last time - I want to repeat that you have to make sure you change settings for the active configuration. I've seen many people stating that their profiles did not show up in the list. There are two main root causes for this:

1. You have a typo in the value you've set for the Code Signing Identity. Xcode compares the name you've entered with the names assigned to the profiles. If there is no case-sensitive match, it'll not offer you to set the profile.

2. If you're not editing settings for the active configuration, Xcode sometimes does not offer anything else than the Default Provisioning Profile for Code Signing Identity.

You're done for the development set up!

Setting up for Ad Hoc distribution

Ad Hoc distribution allows you to hand out your application to friends and allow them to beta test it.

Go to Project > Edit Project Settings and select the Configurations page. If you've started with a clean project you most likely find two configurations, Debug and Release. Select Release and hit Duplicate (it's at the bottom of the Project Info window). Name the duplicated configuration Ad Hoc Distribution. Actually the name is not important and used for reference purposes only but it makes life easier if you stick to clearly speaking names.

200811141446.jpg

Switch to the Device / Ad Hoc Distribution configuration, thus making it active:

200811141452.jpg

Open the project settings again. On the Build page make sure you are editing the active configuration. In the Code Signing section for the Code Signing Entitlements property set the value to dist.plist. In the Code Signing Identity section for the Any iPhone OS Device property set the value to exactly:

iPhone Distribution: <your name>

For the Any iPhone OS Device property in the Code Signing Provisioning Profile select your Ad Hoc distribution profile.

200811141454.jpg

Again: If the Ad Hoc profile you've created does not show up here, chances are, you're not editing the active configuration.

As the final step you've got to add the dist.plist Entitlement file: Right-click on the top most project node and select Add > New File... . Under iPhone OS select the Code Signing category and choose Entitlements.

200811141457.jpg

Name the new file dist.plist. Again the name is not important as long as it matches the settings you've made before for the Code Signing Entitlements property.

200811141522.jpg

Hit Finish. Double-click the newly created file to open it with the Property List Editor. Deselect (!) the get-task-allow property checkbox.

200811141523.jpg

You're done for the Ad Hoc Provisioning Profile!

If you found this article helpful and it might even saved you valuable time, feel free to donate. :-)

I'm going to cover App Store Distribution soon. Stay tuned!

comments
avl stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Hi Ralf

It's been more than a week, that I have submitted my request to both “Registered iPhone Developer” and the “iPhone Developer Program". I was able to download the SDK and my credit card was charged for the program, but still not able to access the Developer Portal to get the certificates.

I had sent a couple of emails to Apple support, but no response at all.

Any idea how long do I have to wait and if it's been already too long, any suggestions?

Thanks.
-AVL
posted on 11/20/2008 7:38 AM
IronMan stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Hi Ralf

Thank you a lot for your guide!

Romeo
posted on 11/21/2008 2:55 AM
# Well done
Your help was highly helpful. Thank you very, very much for writing this.
posted on 11/21/2008 5:25 PM
Kabe stated:
# i don't find "Code Signing Provisioning Profile" entry in build settings
Great article. Helped me to check if my profile was properly installed.

However, I have another issue here trying to build the Quartz Demo with the 2.2 SDK:

In the build settings, there is simply no line "Code Signing Provisioning Profile"...

So how to adress that? Any helpful hint?

Thanks

Kabe

posted on 11/22/2008 11:33 AM
Alex Hunt stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
I have tried following your documentation but still fail! and I am desperately trying to get it to provision!
I have ignored the ad hoc setup but have followed your documentation step by step.
I have checked my new provisioning profile is on the phone - yes, in the correct folder - yes and even checked it in Organiser - yes, however when I go to Code Signing Provisioning Profile in Target/Info there is not even a reference to Code Signing Provisioning Profile and my PP let alone a default provision!
Any idea?
Thanks
Alex
posted on 11/22/2008 4:47 PM
Kabe stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Actually I solved my issue. Seems that the missing "Code Signing Provisioning Profile" entry in SDK 2.2 is actualy not the issue.

What solved the issue for me at least: I had all the keys and certifcates in a seperate key chain. Though I was asked to provide the keychain password during the build process, it didn't work that way.

After moving the keys & certs to my normal user key chain, everything works nicely!

So, with the most recent version of the SDK, here might be an update necessary for the overall process.

Hope it helps some poo soul out there.

Kabe
posted on 11/22/2008 8:05 PM
anon stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Please, you are misleading people by telling them to type a product name on the project info. It is already set for the target and is unnecessary. Also, I don't see a provisioning profile entry in the project info and it's fine. These are all the steps that need to be done in a fresh iPhone 2.2 SDK afretr creating a new project:

1. Go to project info and under Code Signing Identity, next to Any iPhone OS Device, select iPhone Developer: Name Surname.

2. Open the project Info.plist, edit the Bundle Identifier. Make it's part before the first $ to read com.blah. if you have created com.blah.* app id in iPhone Developer Program website. So it should look like this: com.blah.${PRODUCT_NAME:identifier}

That's it, like it's said in the blog make sure you are editing the correct configuration. If you get stuck just create a new project.

posted on 11/25/2008 5:30 AM
jabber stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
This is a great guide, I'm interested to see the update for v.2.2. However, I am amazed that any of this is necessary. Apple has the complete dev guide on the website which is supposed to get you all the way to having a running app on the iPhone. Why on earth aren't they providing complete instructions?

I have followed all of the steps above and I still get "Your mobile device has encountered an unexpected error (0xE800003A) ApplicationVerificationFailed". The lack of any reasonable error messages or resolution instructions is really surprising coming from Apple. Why is it that all IDEs suck? I'm not sure what to try at this point.
posted on 11/25/2008 9:07 AM
v. stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
I am running the 2.2 SDK on a 2.2 phone. I was having problems - I found restarting Xcode after I had made a set of changes worked wonders. It now seems to work fine.
posted on 11/26/2008 3:31 AM
vad stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
I've solved it by JailBreaking... Just simple way
It's almost impossible to get legal ADC registration from xUSSR contry((
posted on 11/28/2008 8:04 PM
Luis stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Hi,

I was having problems to run applications on my iphone device and while trying to do every possible combination of actions, I accidentally deleted my original public and private keys from which I requested my certificate. As I enrolled to the iPhone Developer Program as an individual, I can't request another certificate.

Now, when trying to assign my provisioning profile to a project, I can't even select it because it says

Am I doomed? :(
thanks
posted on 11/30/2008 6:11 AM
Shailesh N stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Hi ,
I am getting error after setting the certificate in SDK.

The error is

Command /usr/bin/codesign failed with exit code 1

I am not getting why the error is....

Please guide me to solve this problem
posted on 12/1/2008 7:16 AM
Sunayknits stated:
# YOU ROCK
Thanks a bunch for demystifying the more irritating and undocumented procedures for code signing. Your article has helped me a great deal and I am grateful. Thank you!
posted on 12/2/2008 9:25 AM
Senthil ACS stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
This is an excellent tutorial. I used this to test on iPhone 2.2 SDK and firmware. The procedure is more or less the same. It worked fine for me.

Shailesh, Your error is because u dont have a valid certificate in your keychain. Make sure of the following

a) Have a valid certificate
b) Install the certificate in your "login" keychain
c) Expand your certificate to check if you can see your Private Key.

All the three must be present.
posted on 12/2/2008 9:33 AM
Adam stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Excellent tutorial. I was having the 0xE800003A error and following these steps fixed it. Thank you.
posted on 12/2/2008 7:56 PM
Mike stated:
# THANKS!
This really helped me. Thanks for taking the time to put this up. And thanks for giving a little insight to the back-end of things that Apple left out.
posted on 12/3/2008 1:02 AM
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Hey Jabber I'm with you, I still get the error message = "Your mobile device has encountered an unexpected error (0xE800003A)"

I'll have to do as this post says and re go through all the steps one by one I guess.
posted on 12/5/2008 7:11 AM
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
!!!!!!!

Jabber - Check your "Bundle Identifier". It's in the info.plist file in your project, it might still say com.yourcompanyname.${PRODUCT_NAME:identifier} and it should instead match your AppId.

So, for example my App Id is artifact.* - so now my "Bundle Identifier" is artifact.${PRODUCT_NAME:identifier}

Cheers to Ralf for an awesome and crucial post for the rest of the community.

Steven
posted on 12/5/2008 7:39 AM
jabber stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
FINALLY got this to work after several weeks of fiddling.
Here's what worked for me:
1) uninstall all the provisioning files via the 'organizer' in xcode for the iphone.
2) got create a new AppID on the apple dev site. I used. com.mydomain.* and titled it something similar.
3) I created a new Provisioning profile (also on apple site) and referenced the app id.
4) Download the provisioning file.
5) drag'n'drop it on the xcode tray icon.
6) The new profile should appear in the Organizer, and it will be automatically transferred to your phone since it's plugged in.
7) updated the bundle identifier under info.plist in xcode to com.mydomain.${PRODUCT_NAME:identifier}
8) open info>build screen in xcode, then change signing identity and iphone os device to both reference my name for the correct provisioning profile mentioned above.
9) Run and Build
10) no longer get the error, and the new app pops up on the iphone.

Now if only apple would make those area either a) unnecessary to have to fiddle with those fields or b) much easier to find, this would much easier to do the first time.
posted on 12/7/2008 1:39 AM
Glenn stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Thank you for the great post. I am on SDK 2.2 now and was wondering what are the simplifications that you talk about in getting things setup. Also, do you know of any issues in setting up Xcode to compile for multiple iPhone Developer teams?

Thanks again for your clear instructions.
posted on 12/14/2008 6:30 AM
Khyati stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
Please can u provide details for SDK 2.2
After following the steps the "(0xe800003a)" error has resolved.

New error
Checking Dependencies
CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2'

Note: There is no key provisioning profile signing to add my provisioning profile
posted on 12/16/2008 12:43 PM
Robb Lovell stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
IMPORTANT:

For first time install of the provisioning and certificates, if built your project before installing and/or modifying your Info.plist, "build and go" isn't sufficient. You may get the dreaded 08800003a error!

YOU NEED TO DO A "CLEAN" of your project before building and running the application on the device!

See: discussions.apple.com/thread.jspa 3/4 the way down this solution comes to light.

cheers.
posted on 12/19/2008 2:14 AM
Grateful Reader stated:
# re: iphone sdk mobile provisioning (0xe800003a, 0xe8000001, ...)
AMAZING!!

I could hardly believe my eyes when (upon following your great instructions step by step) no error message...and my phonegap created app finally made it onto the touch.

I'm not sure what step in the process finally made this happen, but thank you for the magic formula!
posted on 1/3/2009 7:15 PM
post your comment
Title *
Name *
Email
Url
Comment *  
Please add 5 and 1 and type the answer here: