PDA

View Full Version : Provisioning, Certificates, and failure to install my development app.




SqueegyX
Jul 12, 2008, 03:13 PM
I think I got all my certificates and provisioning setup right, but I still cant install any apps to my iphone.

According to: http://developer.apple.com/iphone/manage/devices/howto.action

All I have to do is set the item under "Code Signing" in XCode's Project info to "iPhone Developer: My Name", but my provisioning profile doesn't show up in the drop down below if I do that. If I leave it at the default of "iPhone Developer" then I can select my provisioning profile form the drop down.

However, either easy I still can't install my app, and I get an error:

"Your mobile device has encountered an unexpected error (0xE8000001) during the install phase: Verifying application"

I've read this is a code signing issue, and I have rebooted my iPhone a couple of times. Any ideas?



kitkk2
Jul 12, 2008, 03:30 PM
"Your mobile device has encountered an unexpected error (0xE8000001) during the install phase: Verifying application"

I've read this is a code signing issue, and I have rebooted my iPhone a couple of times. Any ideas?

I had the same problem at first. Solved it by going to the Target for your application in Xcode. Goto Info -> Properties -> Fill in the Identifier field with com.yourcompany such that is matches what you setup on the developer website.

firewood
Jul 12, 2008, 03:47 PM
Did you setup your Keychain? I think it requires 2 or 3 certificates.

SqueegyX
Jul 12, 2008, 04:40 PM
Hmm, well according to the iphone dev program website "You are not required to enter your App ID into your Xcode project. Xcode will incorporate the App ID automatically."

I tried what you said, and I still cant select my profile after I type in my name as the tutorials instruct. I've double checked all the spellings.

I am using a wildcard app ID though, could that be the problem? It looks like this on the website

(RANDOMCHARACTERS).com.mydomain.*

So I set the app ID in xcode to:

(RANDOMCHARACTERS).com.mydomain.${PRODUCT_NAME:identifier}

Is that right?

EDIT: Yes I have both certificates in my keychain. The personal one, and the WWDR certificate. I put them in the "login" keychain, because that was default and apple tell me to put them somewhere different.

gralem
Jul 12, 2008, 05:43 PM
You can see my extensive notes on provisioning in this thread (http://forums.macrumors.com/showthread.php?t=518011).

SqueegyX
Jul 12, 2008, 06:09 PM
Thanks.

Provisioning now becomes simple. You need one Provisioning Profile for development and another one for distribution. One and only one of each type of provisioning profile. Each profile uses your one App ID. Put your development provisioning profile in ~/Library/MobileDevices/Provisions. Start XCODE and drag your distribution provisioning profiles to the xcode icon once it is running. XCode does something to distribution profiles (renames them at least) and puts them for you in ~/Library/MobileDevices/Provisioning Profiles/. But you cannot drag your distribution profiles into this folder directly.

That seemed to do it for me. The only thing I did different was put my .mobileprovision file in ~/Library/MobileDevices/Provisioning Profiles/ and drag it into XCode from there. No idea why that's necesary, but its working now. Thank you.