Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-29-2008, 06:04 AM   #1 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default 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
Nos is offline   Reply With Quote
Old 08-29-2008, 08:01 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

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.
bikr is offline   Reply With Quote
Old 08-29-2008, 08:52 AM   #3 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

Yes I did it and it didn't work.
Nos is offline   Reply With Quote
Old 08-29-2008, 09:01 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

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.
bikr is offline   Reply With Quote
Old 08-29-2008, 09:14 AM   #5 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

How and where to drag into Xcode the profile ? I'd just add this profile file in /Library/MobileDevice/Provisionning Profiles/
Nos is offline   Reply With Quote
Old 08-29-2008, 09:18 AM   #6 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

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
bikr is offline   Reply With Quote
Old 08-29-2008, 09:22 AM   #7 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

Ok. I try what you did.
Nos is offline   Reply With Quote
Old 08-29-2008, 09:25 AM   #8 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

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.
bikr is offline   Reply With Quote
Old 08-29-2008, 10:03 AM   #9 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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 ????
Nos is offline   Reply With Quote
Old 08-29-2008, 10:09 AM   #10 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

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.
bikr is offline   Reply With Quote
Old 08-29-2008, 10:29 AM   #11 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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
Nos is offline   Reply With Quote
Old 10-08-2008, 09:55 AM   #12 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 16
Default

Quote:
Originally Posted by bikr View Post
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
gonso75 is offline   Reply With Quote
Old 10-12-2008, 03:34 PM   #13 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 16
Default

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....
gonso75 is offline   Reply With Quote
Old 10-13-2008, 05:22 AM   #14 (permalink)
New Member
 
Join Date: Jun 2008
Location: London
Posts: 37
Default

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
GeeElle is offline   Reply With Quote
Old 10-13-2008, 06:00 AM   #15 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 16
Default

Quote:
Originally Posted by GeeElle View Post
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
gonso75 is offline   Reply With Quote
Old 10-14-2008, 04:13 PM   #16 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default 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
alanhalley is offline   Reply With Quote
Old 10-15-2008, 01:56 AM   #17 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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 ?
Nos is offline   Reply With Quote
Old 10-15-2008, 05:36 AM   #18 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

I restarted XCode several times, and just now restarted my computer, but my provisioning profile still is grayed out.
alanhalley is offline   Reply With Quote
Old 10-15-2008, 07:07 AM   #19 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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.
Nos is offline   Reply With Quote
Old 10-15-2008, 07:36 AM   #20 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

Sorry, but I'm new to XCode, how do I "recreate" the project in Step 3? Thanks.
alanhalley is offline   Reply With Quote
Old 10-15-2008, 07:48 AM   #21 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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.
Nos is offline   Reply With Quote
Old 10-15-2008, 08:10 AM   #22 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

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.
alanhalley is offline   Reply With Quote
Old 10-15-2008, 08:11 AM   #23 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

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?
alanhalley is offline   Reply With Quote
Old 10-15-2008, 08:36 AM   #24 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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.
Nos is offline   Reply With Quote
Old 10-15-2008, 08:41 AM   #25 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

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
Nos is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,350
Threads: 39,144
Posts: 171,614
Top Poster: smasher (2,577)
Welcome to our newest member, 17make
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:36 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0