|
Replies
:
45
-
Pages
:
4
[
1
2
3
4
|
Next
]
-
Last Post
:
Jul 17, 2008 9:57 PM
by: killers
|
|
|
Posts:
52
From:
Seattle, WA
Registered:
Apr 14, 2008
|
|
|
|
HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:14 PM
|
|
|
Okay, through trial and error, I have determined:
1) Provisioning profiles have to be regenerated; ones generated yesterday or this morning are corrupted.
2) Apparently, your app ID must now be only three dot-levels deep. I.e., if you have 'com.mycompany.foo' on Mac OS X, you cannot name your app ID 'com.mycompany.foo.mobile' -- you will need to do 'com.mycompany.mobilefoo' or whatever. (This was the one that got me, and took me quite a while to figure out.)
3) Your app ID and the bundle ID in the target properties of Xcode must be identical, to the character. So if you have 'com.mycompany.*' as an app ID, you will need to set the bundle ID to 'com.mycompany.*' rather than 'com.mycompany.mobilefoo'
4) You will need to go re-select the code signing profile in Xcode before rebuilding for devices under beta 7.
5) You MAY (I didn't, but others did) have to change your code signing identity to be just 'iPhone Developer' instead of 'iPhone Developer: Firstname Lastname'
Hopefully this helps folks!
Message was edited by: RainPacket
MacBook Pro
Mac OS X (10.5.3)
|
|
Posts:
2
From:
New York
Registered:
May 21, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:22 PM
in response to: RainPacket
|
|
|
Sorry, I have a dumb question, what do you mean by "re-select the code signing profile in Xcode?"
Thanks!
Macbook Pro
Mac OS X (10.5.2)
|
|
Posts:
52
From:
Seattle, WA
Registered:
Apr 14, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:26 PM
in response to: peter.ng
|
|
|
- Delete the old provisioning profiles from your device.
- Renew/regenerate provisioning profiles on the iPhone Program Portal website, and re-download.
- Re-add the provisioning profiles to your device.
- Select your project in Xcode (top level of the project browser tree), and do Get Info.
- Go to Build, and find the 'Code Signing Provisioning Profile' option.
- Beneath it, there should be a 'Any iPhone OS Device' option with a drop-down selector. Use that, and pick the proper profile from the list.
- Rebuild, to force the app to be re-signed.
MacBook Pro
Mac OS X (10.5.3)
|
|
Posts:
41
From:
Culver City
Registered:
Apr 30, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:37 PM
in response to: RainPacket
|
|
|
After a day of fighting it finally installed!
Thank you RainPacket!
MacBookPro
Mac OS X (10.5.2)
iPhone
|
|
Posts:
8
From:
Texas
Registered:
Jun 9, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:47 PM
in response to: JungleFighterPh...
|
|
|
I don't know if anyone else here had the same kind of probelm that I had, but here's my experience and what fixed it.
According to the OP's post, the AppIDs have the be no more than three dot-levels deep. When I created my new AppIDs, I made it com.home.*. Well, Apple automatically puts some kind of alpha-numeric key on the front of the AppID, so I wound up with an AppID that was four dot-levels deep. So, I went back and created another that was only two dots deep so that once Apple did their magic, it was three. I created a new provisioning file, downloaded it, and voila it worked. I've been fighting this since about 10:00 last night, and as happy as I am to have my testing device back up and running, I'm done with the computer for the day. I'll start afresh tomorrow, just wanted to share my experience for anyone else that's having any problems.
iMac
Mac OS X (10.5.3)
|
|
Posts:
52
From:
Seattle, WA
Registered:
Apr 14, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:50 PM
in response to: myersn024
|
|
|
Apple does document (buried very, very deeply) that you no longer have to put the string they add to the app ID into your Xcode anymore. So if you have com.mycompany.mobilefoo, and Apple generates that as PCX66734Q9.com.mycompany.mobilefoo, you can still put com.mycompany.mobilefoo and have it work.
But yes, it fails with more than 3 levels in the dot chain, so if you include that PCX66734Q9 or whatever in your Xcode project, you'll need to make sure that doesn't push you to the 4 levels, or the verification check on the device will fail.
I have NO clue why this is so, just that it... well, /is/.
MacBook Pro
Mac OS X (10.5.3)
|
|
Posts:
10
From:
Los Angeles
Registered:
May 15, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 4:53 PM
in response to: RainPacket
|
|
|
Do the devices now have to be activated through AT&T?
Previously that didn't seem to be necessary - but after installing 5A331 (beta 7), iTunes takes me straight to the "Let's get started" page.
Mac OS X (10.5.3)
|
|
Posts:
191
Registered:
Sep 1, 2006
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 5:36 PM
in response to: RainPacket
|
|
|
This >almost< worked. For one brief shining moment, I was able to get my app installed. But then reality hit and hit with a great and mighty force.
I noticed that in the Target's Build settings the "Code Signing Provisioning Profile" as referenced in another posting. It was blank. "Hmmm..."sez I. There was a dropdown, which when selected listed my 2 profiles and a "Default" one, whatever that was for. Even though things were working fine, I selected one of mine to be consistent. And I can no longer install the app. I blank out the entry again, and it still fails.
I get the 0xE8000001 error, saying that it failed during "PrefightingApplication"..
&&^@%?><@@ !!!!
Mac Mini
Windows XP Pro
|
|
Posts:
80
From:
Rochester, NY
Registered:
Apr 8, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 5:56 PM
in response to: Proxima
|
|
|
I got that error once when changing the version number on my app, then trying to re-download it to the device. I had to manually uninstall it from the device, then it would re-install from XCode without issues.
Mac Mini
Mac OS X (10.5.2)
|
|
Posts:
191
Registered:
Sep 1, 2006
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 6:09 PM
in response to: Scott_Lawrence
|
|
|
I discovered that trick back in SDK 5. I had no apps in this case, to remove.
I finally just restored the OS and can now install all apps. Very weird...
And get this:
I can only install ONE app at a time. I install app Foo, and the icon shows up as expected. I then install app Bar, and Foo vanishes, replaced by Bar.
Mac Mini
Windows XP Pro
|
|
Posts:
4
From:
Bay Area, California
Registered:
Jun 10, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 6:24 PM
in response to: Proxima
|
|
|
I have implemented (I believe) all of the steps above but I still cannot deploy my apps:
1. redownloaded OS & SDK 7 @ around 4:45pm, 06.10.08
2. installed OS then SDK, everything seems fine so far
3. created new App ID as simply "MyApp" with the ID mycompanyname.* which converts to something like JY5FE7J5KA.mycompanyname.*
4. generated new provisioning profile called "My New Profile" that uses the aove App ID
5. downloaded the provisioning profile and placed it in the library->Mobiledevice->provisions directory
6. launched Xcode where it shows 4 provisioning profiles; i made sure to select only "My New Profile" (it will not let me delete the others, can only uncheck them)
7. launched my Xcode project called MyFoo and selected the target, the GetInfo; set my the Identifier to JY5FE7J5KA.mycompanyname.MyFoo; made sure the bundle ID was exactly the same
8. Cleaned all targets (just to be safe)
9. Compiled and Ran and this is where it failed again with the same error "Your mobile device encountered ..."
Anyone see what step I may have missed? Why is this so hard to get working?!!
Macbook Pro
Mac OS X (10.5.3)
|
|
Posts:
4
From:
Bay Area, California
Registered:
Jun 10, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 10:12 PM
in response to: jamois
|
|
|
Found this on another thread and it worked for me. This is the first time anyone has explicitly said you can remove the code from the App ID when setting up the identifier for your app:
Do the exact same steps I did, plus :
In Info.plist, Change the Bundle identifier value from :
AA22CBE987.com.<yourcompanyname>.<yourappname> to com.<yourcompanyname>.<yourappname>
(just remove everything before com)
So in my example above I changed JY5FE7J5KA.mycompanyname.MyFoo into mycompanyname.MyFoo for both my application identifier and for bundle identifier in the plist. It worked. Remember to do this for both the application and bundle identifiers.
Macbook Pro
Mac OS X (10.5.3)
|
|
Posts:
3
From:
Scottsdale, AZ
Registered:
Apr 9, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 10, 2008 10:57 PM
in response to: jamois
|
|
|
jamois
Maybe I can help if you are still stuck. I figured it out with your help, so maybe I can help a bit.
I first grabbed my new provisioning information about about 8pm on the10th, so maybe I got good provisioning files. My provisioning identifier is 4 long xxxx.com.myco.myapp but following other's advice on this chain. Here is all I had to do:
1) I entered com.myco.myapp into my plist bundle identifer
2) In the Build configuration of the Project Info, I
a) Used my name in the Code Signing Identity field. I used the same name as I was told to use in the provisioning Certificates:
http://developer.apple.com/iphone/manage/certificates/team/index.action
b) I selected the proper provisioning profile from the Code Signing Provisioning Profile selector field.
c) That automatically selected the same profile in the Any iPhone Device selector field.
I compiled and it ran.
I figured out the last steps by reviewing this information:
http://developer.apple.com/iphone/manage/overview/development.action
Hope this helps
Joe
www.softwareops.com
MacBook Pro
Mac OS X (10.5.3)
|
|
Posts:
1
From:
japan
Registered:
Jun 11, 2008
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 11, 2008 5:59 AM
in response to: jamois
|
|
|
Thanks!
I could do it.
MacBook
Mac OS X (10.5.3)
iPod touch beta7
|
|
Posts:
191
Registered:
Sep 1, 2006
|
|
|
|
Re: HOWTO: Fix beta 7 SDK provisioning/device errors.
Posted:
Jun 11, 2008 10:09 AM
in response to: Proxima
|
|
|
I discovered that trick back in SDK 5. I had no apps in this case, to remove.
I finally just restored the OS and can now install all apps. Very weird...
And get this:
I can only install ONE app at a time. I install app Foo, and the icon shows up as expected. I then install app Bar, and Foo vanishes, replaced by Bar.
Fixed this...while the appID in the Portal page apparently now has to be <apple supplied code>.com.<yourcompanyname>.*
In the plist bundle.identifier field it can be "com.<yourcompanyname>.<appname>. Using the wildcard merely makes each app look identical, at least from the springboard's viewpoint.
Mac Mini
Windows XP Pro
|
|
|