 |
|
 |
|
 |
08-29-2008, 06:04 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Problem Iphone Ad-Hoc Distribution
Hello Everybody,
I need your help.
I'm trying to share my app via Ad-Hoc distribution. However, when the others users try to drag & drop the app on Itunes, it doesn't work. They install the .mobileprovision and simply drag & drop the .app.
I created a Distribution Certificate, a distribution ad-hoc .mobileprovision with all the devices on program portal. I install everything on my computer. With Xode, I do anything apple say on program portal. I build my app and send to my friends via email but they can't install it.
Please, could you help me ????
Nos
|
|
|
08-29-2008, 08:01 AM
|
#2 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
Did you build it for "device" and set the build settings to "Iphone Distribution: Your Name" ?
Also , one thing I do that helps is create a dist.plist and set as the code signing authority to dist.list. Seems to help clear up some issues.
|
|
|
08-29-2008, 08:52 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Yes I did it and it didn't work.
|
|
|
08-29-2008, 09:01 AM
|
#4 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
K. Well the process does work, so it's totally something you are doing on your end. Here are my steps....
1. Add device IDs to dev portal for distribution
2. Create an adhoc distribution profile after the dev ids are in
3. Install the provision by dragging into xcode
4. Set xcode to build for device and distribution profile. Make sure both are active.
5. Create a plist called dist.plist and add it to your project. Once added double click it and uncheck the check box that is currently checked (if forget the actual setting but there is only 1.
6. With the top of the tree highlighted, click on info and go into build settings.
7. Set Signing Entitlements to dist.plist.
8. Set Any Iphone OS Device Under Code Signing Identity to : Iphone Distribution: My Name
9. Set Any Iphone OS Device Under Code Signing Provisioning Profile to: Provision you created and installed.
10. Close that window..
11. Build / Clean all targets.
12. Build.
13. Click Allow when asked to access keychain.
14. Send the prov profile and the .app in a zip to all of your users.
15. Have them unzip it and drag the provisioning profile into itunes
16. Have them remove your app if they already have an old version installed.
17. Have them drag the new app in.
|
|
|
08-29-2008, 09:14 AM
|
#5 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
How and where to drag into Xcode the profile ? I'd just add this profile file in /Library/MobileDevice/Provisionning Profiles/
|
|
|
08-29-2008, 09:18 AM
|
#6 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
You can drag the provision file into itunes , or into xcode just drop it on the icon in your dock. Or you can do what you did and drag it into the folder directly and restart xcode
|
|
|
08-29-2008, 09:22 AM
|
#7 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Ok. I try what you did.
|
|
|
08-29-2008, 09:25 AM
|
#8 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
If you are going to start over, and or try from scratch, make sure you make a new provision profile with a new name, that way you don't get them confused.
|
|
|
08-29-2008, 10:03 AM
|
#9 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
I've just one question. When I build my app, Xcode ask me : CodeSign want to use the Key "My Name" but I found that these key is my developer key and not my distribution key ?
Do you know how to use my distribution key ????
|
|
|
08-29-2008, 10:09 AM
|
#10 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
I think you may be confused, you shouldn't have distribution key, only a provisioning profile. The developer key is what is used for you the developer to sign your apps. This is correct.
|
|
|
08-29-2008, 10:29 AM
|
#11 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Ok. However, in my KeyChain application on MAC OS X, I installed the 2 certificates (developer and distribution) and the certificates are associated with a Key (public and private). If I build my app, Xcode doesn't ask me to allow to build with the good key ????????
Sorry, I don't really understand what Xcode say to me before to finalize building.
Thank you for your help
|
|
|
10-08-2008, 09:55 AM
|
#12 (permalink)
|
|
New Member
Join Date: Oct 2008
Posts: 16
|
Quote:
Originally Posted by bikr
K. Well the process does work, so it's totally something you are doing on your end. Here are my steps....
1. Add device IDs to dev portal for distribution
2. Create an adhoc distribution profile after the dev ids are in
3. Install the provision by dragging into xcode
4. Set xcode to build for device and distribution profile. Make sure both are active.
5. Create a plist called dist.plist and add it to your project. Once added double click it and uncheck the check box that is currently checked (if forget the actual setting but there is only 1.
6. With the top of the tree highlighted, click on info and go into build settings.
7. Set Signing Entitlements to dist.plist.
8. Set Any Iphone OS Device Under Code Signing Identity to : Iphone Distribution: My Name
9. Set Any Iphone OS Device Under Code Signing Provisioning Profile to: Provision you created and installed.
10. Close that window..
11. Build / Clean all targets.
12. Build.
13. Click Allow when asked to access keychain.
14. Send the prov profile and the .app in a zip to all of your users.
15. Have them unzip it and drag the provisioning profile into itunes
16. Have them remove your app if they already have an old version installed.
17. Have them drag the new app in.
|
So the first step is to be part of the Developer Program.... Is there any way to test the app on a real iPhone without being part of the Program?
Im doing a development for learning purposes and want to test that it works (past the emulator). How can I do that?
Thanks!
Gonso
|
|
|
10-12-2008, 03:34 PM
|
#13 (permalink)
|
|
New Member
Join Date: Oct 2008
Posts: 16
|
I have now become part of the Developer Program but Im confused about something.
Why Do I need two Certificates (Dev and Deploy)? Is there any diference between them in the creation / usage process?
Im trying to deploy an app but I always get that it could not be verified....
Please help....
|
|
|
10-13-2008, 05:22 AM
|
#14 (permalink)
|
|
New Member
Join Date: Jun 2008
Location: London
Posts: 37
|
Hi there.
Here's another tip you might want to check. It may not be related to your specific problem but it may help someone else trying to fix their adhoc distribution. It took me 3 weeks of hard slog before I came across this.
"3) Did you right click on both the Target app link AND the uppermost app link and make sure that they BOTH have "iPhone Developer: YOURNAME" in the Code Signing Identity? And you have a space after the colon in both cases."
The 'upper most app link' is the icon that appears at the top just underneath the 'Groups and Files'. I found my code signing settings here were different to those when selecting the Target App.
I found this on another link somewhere and I apologize for not being able to quote the source....
G
|
|
|
10-13-2008, 06:00 AM
|
#15 (permalink)
|
|
New Member
Join Date: Oct 2008
Posts: 16
|
Quote:
Originally Posted by GeeElle
Hi there.
Here's another tip you might want to check. It may not be related to your specific problem but it may help someone else trying to fix their adhoc distribution. It took me 3 weeks of hard slog before I came across this.
"3) Did you right click on both the Target app link AND the uppermost app link and make sure that they BOTH have "iPhone Developer: YOURNAME" in the Code Signing Identity? And you have a space after the colon in both cases."
The 'upper most app link' is the icon that appears at the top just underneath the 'Groups and Files'. I found my code signing settings here were different to those when selecting the Target App.
I found this on another link somewhere and I apologize for not being able to quote the source....
G
|
Ill give that a try, however I thought that the Code Signing Identity should be 'iPhone Deployment' for the deployment target.... isn't it so?
or is it that the Deployment certificate/commissioning profile is only use for apple store deployments?
Im so confused with having two sets of certificate and profiles....
Thanks
|
|
|
10-14-2008, 04:13 PM
|
#16 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 12
|
Ad Hoc Distribution - Code Signing
I'm trying to create an ad hoc distribution, and I get to the XCode plist, then my Code Signing Provisioning Profile for Any iPhone Devise is grayed out in the popup. Any idea what I did wrong here? Thanks. Alan
|
|
|
10-15-2008, 01:56 AM
|
#17 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
When you install your Ad-Hoc Distribution Profile, you had to restart Xcode or maybe your computer (if doesn't work) and then, you could (normally) choose your Ad-Hoc Distribution Profile.
Did you restart Xcode or your computer ?
|
|
|
10-15-2008, 05:36 AM
|
#18 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 12
|
I restarted XCode several times, and just now restarted my computer, but my provisioning profile still is grayed out.
|
|
|
10-15-2008, 07:07 AM
|
#19 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Ok. Ioften have this problem. Try this:
1) Redownload your developer provisioning profile and ad-hoc provisioning profile
2) Reinstall them (overwritting in the good directory)
3) Recreate a project with all views and files of your last project.
4) In the Target Settings\All active(Debug), where there is Iphone Developer , write Iphone Developer: Your Certifate Developer Name and then choose your developer provisioning profile in the Code signing case.
5) In the Project Settings\Release, do the same thing
6) In the Project Settings or Target Settings (don't remember)\build, duplicate Release and rename it Distribution.
7)Select Distribution to build your app.
8) In the Target Settings\All active(Distribution),where there is Iphone Developer : Your Certifate Developer Name, write Iphone Distribution: Your Certifate Distribution Name and then choose your distribution ad-hoc provisioning profile in the Code signing case.
Normally it works.
|
|
|
10-15-2008, 07:36 AM
|
#20 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 12
|
Sorry, but I'm new to XCode, how do I "recreate" the project in Step 3? Thanks.
|
|
|
10-15-2008, 07:48 AM
|
#21 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
Ok. To create a new project, do this :
File->New Project-> Window based application (for exemple, if you want to do this, maybe another type of application).
Import all the files you created for your last project and build to know if there is an error.
Maybe, you could try my method without the 3) step.
|
|
|
10-15-2008, 08:10 AM
|
#22 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 12
|
I tried skipping Step 3, recreating the project, and still can't select the provisioning profile.
Tell me, why would I type in the name of the provisioning profile, then not be able to select it? That part just doesn't make sense to me. If the provisioning profile is already installed in XCode, why can't I just select it from a list? And, if I incorrectly enter the name of the profile, why don't I get some sort of error message? Just curious.
|
|
|
10-15-2008, 08:11 AM
|
#23 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 12
|
One thing I did notice: my developer cert has just my name, and the distribution cert has my company name. Do they need to match?
|
|
|
10-15-2008, 08:36 AM
|
#24 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
When you create your ad-hoc distribution profile, you have associated with your certificate distribution. That's why you must add in the case where there is Iphone developer -> Iphone Distribution: Your company name as it is written on your distribution certificate.
Have you followed all the steps I mentioned ?
Try to redownload the developer and ad-hoc provisioning profile. Quit xcode. Relaunch it.
Try to create a new project and do the steps I mentioned.
|
|
|
10-15-2008, 08:41 AM
|
#25 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 73
|
The certificate of development and distribution are not the same. You usually associated, as when you created in the program portal, the developer provisioning profile with your certificate of development and your ad-hoc distribution profile with your certificate of distribution.
That's why you sign :
For developpement:
Iphone Developer : Your name
For Distribution:
Iphone Distribution : Your company name
|
|
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 537 |
| 31 members and 506 guests |
| a123b, ashishjraval, blum, DonomaGames, drhansen, Duncan C, Error404, foxykirian, hfmn, Hololont, houssem, ideafactory, iGeorG, LemonMeringue, Lokendra, marklusted, momolgtm, myPhone, rawjam, richyclements, sheonlee, shilpa85, SirGeraint, sohel62, telo3, tiderip, umarmara, xiii3, YoseMite, _nivek, _sean |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,350
Threads: 39,144
Posts: 171,614
Top Poster: smasher (2,577)
|
| Welcome to our newest member, 17make |
|