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 10-15-2008, 08:43 AM   #26 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

Now, if you want that a friend have your app : just add to your developer provisioning profile the device of your friend. Redownload the developer provisioning profile. Resign your app with Iphone Developer: Your name + check your developer provisioning profile.

Build your app.
Send app.zip + your developer provisioning profile to your friend.
Nos is offline   Reply With Quote
Old 10-15-2008, 01:37 PM   #27 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

Okay, here's what I have done:

0. Restarted my computer.
1. Downloaded my certs again, installed them in the keychain, and verified that they are in the keychain.
2. Downloaded my distribution provisioning profile again, and dragged it to XCode icon in the dock (launching XCode, but it doesn't do anything else).
3. Created a new project.
4. Build and Go.
5. I duplicated Release in Target Info: Configuration, then renamed it to Distribution.
6. Then I went to Target Info: Build, and selected Distribution.
7. I changed Code Signing Identity: Any iPhone OS Device to iPhone Distribution: Alan Halley Inc
8. Went to Code Signing Provisioning Profile: Any iPhone OS Device and clicked on the popup Default Provisioning Profile for Code Signing Identity, but iPhone Distribution: Alan Halley Inc is grayed out.

This seems to be what Apple says to do, but I must be missing something. Any idea what I am doing wrong? Thanks.
alanhalley is offline   Reply With Quote
Old 10-16-2008, 02:25 AM   #28 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

Could you try this first:

1) Launch Xcode
2) Create a new project
3) Open Target Settings and Project Settings windows
4) Configuration : Active (Debug)
5)In the box Code Signing Identity, put the followings:
iPhone Developer: Your Name (as in your developer certificate)
6)In the box Code Signing Provisioning Profile Any Iphone OS Device, choose your developer provisioning profile.
7) Do the same thing for Configuration (Release)

Normally, this works.

Then :
8) Duplicate Release and rename it Distribution
9) Open Target Settings and Project Settings windows
10) Configuration : Active (Debug)
11)In the box Code Signing Identity, put the followings:
iPhone Distribution: Your Company Name (as in your distribution certificate)
12)In the box Code Signing Provisioning Profile Any Iphone OS Device, choose your distribution provisioning profile.

I often encounter this problem and I redo all the steps I mentioned and finally, it works.

Good Luck
Nos is offline   Reply With Quote
Old 10-16-2008, 07:50 AM   #29 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

I can't choose my Developer Provisioning Profile in Step 6. I checked the iPhone Development cert in Keychain Access, and my name is spelled the same in the cert as what I just entered in XCode.
alanhalley is offline   Reply With Quote
Old 10-16-2008, 08:04 AM   #30 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

Wait! I downloaded my development provisioning profile (I missed that one before) and dropped onto XCode, and I can now choose the Development settings, and Distribution sees the cert and I can now choose it.

Thank you very much!

Alan
alanhalley is offline   Reply With Quote
Old 10-16-2008, 10:00 AM   #31 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

I had a successful Build, but the app icon in the Finder has a circle with a slash.

I tried to install it, anyway. I dragged the app and provisioning profile to iTunes, and synced to an iPhone. I received a dialog saying "The app could not be installed because it could not be verified."

So, I tried "Build and Go", but I received an error: "Unable to verify app."

Any idea what I did wrong this time? Thanks.
alanhalley is offline   Reply With Quote
Old 10-16-2008, 03:49 PM   #32 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

Oops, I didn't have my iPhone in the Ad Hoc Distribution provisioning profile. It now works on my iPhone! Thanks, again.
alanhalley is offline   Reply With Quote
Old 10-17-2008, 11:00 AM   #33 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 73
Default

You're welcome.
Have a nice day.
Nos is offline   Reply With Quote
Old 10-18-2008, 12:23 PM   #34 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 2
Default could not be verified

I try all this an it tells me that the app can't be installed because it could not be verified. What is wrong. I also have the circle with the line through it on my app. How do I fix that

Last edited by dumbgames; 10-18-2008 at 12:30 PM.
dumbgames is offline   Reply With Quote
Old 10-18-2008, 01:50 PM   #35 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 12
Default

I _think_ that the circle with the line through it means you don't have a .png file specified for the icon.

I also received the "Unable to verify..." message. In my case, I had forgotten to include my test iPhone in the provisioning profile. When I modified my provisioning profile to include my test iPhone, downloaded a new provisioning profile and installed it, everything worked.
alanhalley is offline   Reply With Quote
Old 10-30-2008, 01:08 PM   #36 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default Any solution, yet?

Has anyone solved this, yet? Here's what I have:

* I have my personal iPhoneDev certificate "iPhone Developer: Chum"
* I have my company dist certificate "iPhone Distribution: Chumco, Inc."
* Both certs show in my keychainAccess.app under certificates, both have my private key associated with them.
- Under keys, there is my public key and my private key, but my private-key's twiddle-down only shows my DEVELOPER cert.
=== Is that a problem? How to fix?! ===
* I have followed all the steps in the portal to generate an ad-hoc dist cert, provision devices, etc.
* When I drag "AdHoc.mobileProvision to iTunes, it asks "already exists, replace?", so I say yes.
* When I build my app (distro), it passes the 2 checks at the end of the Portal page description.
* When I drag app to iTunes, it has the circle-slash icon.
* When I sync apps with phone, I get:

"The application 'foo' was not installed on the iPhone 'ChumPhone' because it could not be verified."

I've double-checked my steps several times against the portal "How-To" and also the auxiliary PDF document, and can't see anything that's not right.

Can anyone point out any "gotchas" where some step might be performed 2 ways, or in a different order, or something?

And how about that keychain access thing above? Is that a bug or an important clue? How do I fix it?

Thanks!
chum is offline   Reply With Quote
Old 10-30-2008, 01:15 PM   #37 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 211
Default

Do you have your iPhone's UDID in the Ad Hoc Provisioning section of the developer portal?
lapse is offline   Reply With Quote
Old 10-30-2008, 02:35 PM   #38 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default

Quote:
Originally Posted by lapse View Post
Do you have your iPhone's UDID in the Ad Hoc Provisioning section of the developer portal?
I don't follow what you mean by "the Ad Hoc Provisioning section of the developer portal."

* My phone UDID (that's the 40 byte hex #, right?) is listed under the Devices section.
* That phone has associated with it several [provisioning] profiles, including my AdHoc one (named "adhoc").
* In the provisioning section, under distribution, is my AdHoc profile, which is associated with the device. This is the one that I downloaded and drag&dropped onto iTunes.
* The AdHoc tab in the Distribution section has no actions to perform, just a set of instructions, which I have followed (well, I followed steps 1-3. Step 4 is where I'm getting stuck, which is what this entire post is about!)
chum is offline   Reply With Quote
Old 11-03-2008, 10:26 PM   #39 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default SOLVED! (for me, at least)

My app-name had UTF-8 characters in it. Renaming it to straight roman character set solved everything, it now works like a charm.

Gah!

Does anyone have experience with UTF-8 characters in app-names in the App-store? For example, might a Go game be allowed to be called "Go! (圍棋)"?

Are there any other restrictions on app-names? Maybe characters that don't play nice with unix, like !, &, *, ?, etc?

Anyway, thanks for al your hints & help -- I'm glad to be finally over this hump!
chum is offline   Reply With Quote
Old 11-04-2008, 08:04 AM   #40 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 2
Default Options for selecting mobile provision in Xcode are "greyed out"

Hi All,

I think I'm missing something in my keychain. In XCode, when I'm on the Info pane, I am unable to select the mobile provisioning associated with my project. I see it in the drop-down along with:

<matching certificate identity with private key not found in login keychain>

I then looked in my keychain and the "iPhone Distribution" certificate does not have an arrow next to it, indicating it's not associated with a private key. What am I missing? I downloaded the private key for my ADC account and it associated with my "iPhone Developer" certificate just fine.
joshjosh is offline   Reply With Quote
Old 11-30-2008, 10:01 AM   #41 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 1
Default

I am very new to the IPhone and hopefully someone could help me out.
I ahve the IPhone 3G with 2.2 version and I'm trying to download more than 1 apps but I always get this message in the ITunes 8"

The application was not installed on your IPhone because it could not be verified.

What can I do about it?

Thanks!
cosmin100 is offline   Reply With Quote
Old 02-19-2009, 10:07 AM   #42 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 4
Default

+1 on this tip. I spent an hour checking my project info, but after reading this post, I realized that my TARGET info build settings were signed using a different certificate.

For some reason, changing the PROJECT info doesn't propagate to the target info buiding settings.

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
gfxblit is offline   Reply With Quote
Old 04-02-2009, 12:42 AM   #43 (permalink)
New Member
 
Join Date: Feb 2009
Location: Houston, TX
Posts: 40
Default Similar issues, but is it the keychain?

My Target and App builds are the same, and according to my Touch the adhoc distro profile installed is verified. However, I'm not sure if the keychain setup is correct.

Attached are some screen caps, showing my settings. Can anyone spot an issue? I get the same "application was not installed because it could not be verified" message, when trying to adhoc to myself (the Touch is hooked up to an XP machine). The UDID is correct, on the listing of devices associated with this distribution.

Also I noticed in iTunes that the icon for the app is a generic UIB type icon, rather than the one specified in the Info.plist file. The png itself *is* in the .app folder I'm dragging to iTunes for installation, and it's spelled the same (with same case sensitivity) as what's in the plist file, so that's a little odd, as well.

Ideas?

Thanks.
Attached Images
File Type: jpg XcodeScreen2.jpg (90.4 KB, 14 views)
File Type: jpg XcodeScreen1.jpg (89.5 KB, 8 views)
File Type: jpg KeychainScreen2.jpg (39.1 KB, 8 views)
File Type: jpg KeychainScreen1.jpg (46.8 KB, 7 views)
shaendra is offline   Reply With Quote
Old 04-02-2009, 10:41 AM   #44 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 4
Default

Did you try cleaning your build directory? Sometimes xcode leaves stuff behind if you just build & go. I just delete the build dir (or you can rename it) and rebuild.

Your keychain looks ok to me. If there's a problem with the keychain you won't be able to click on the provisional profile when you select the code signing in the Project build settings.

Regarding the icon, did you try adding the icon to your project? I'm not sure if it's necessary but it's worth a try. Maybe it needs it in the project so that it can copy the resource when compiling the app.

Quote:
Originally Posted by shaendra View Post
My Target and App builds are the same, and according to my Touch the adhoc distro profile installed is verified. However, I'm not sure if the keychain setup is correct.

Attached are some screen caps, showing my settings. Can anyone spot an issue? I get the same "application was not installed because it could not be verified" message, when trying to adhoc to myself (the Touch is hooked up to an XP machine). The UDID is correct, on the listing of devices associated with this distribution.

Also I noticed in iTunes that the icon for the app is a generic UIB type icon, rather than the one specified in the Info.plist file. The png itself *is* in the .app folder I'm dragging to iTunes for installation, and it's spelled the same (with same case sensitivity) as what's in the plist file, so that's a little odd, as well.

Ideas?

Thanks.
gfxblit is offline   Reply With Quote
Old 04-02-2009, 10:44 AM   #45 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 4
Default

oh yeah, also check that your bundle id matches whatever you specified on for the provisioning profile.

Quote:
Originally Posted by gfxblit View Post
Did you try cleaning your build directory? Sometimes xcode leaves stuff behind if you just build & go. I just delete the build dir (or you can rename it) and rebuild.

Your keychain looks ok to me. If there's a problem with the keychain you won't be able to click on the provisional profile when you select the code signing in the Project build settings.

Regarding the icon, did you try adding the icon to your project? I'm not sure if it's necessary but it's worth a try. Maybe it needs it in the project so that it can copy the resource when compiling the app.
gfxblit is offline   Reply With Quote
Old 04-02-2009, 10:56 AM   #46 (permalink)
New Member
 
Join Date: Feb 2009
Location: Houston, TX
Posts: 40
Default Bundle ID...

Quote:
Originally Posted by gfxblit View Post
oh yeah, also check that your bundle id matches whatever you specified on for the provisioning profile.
Can't remember if I did that. I'll check when I get home (cannot reach the Mac from work... darned firewalls!) Are you talking about in the "info" settings of the Project or of the Target, or a setting somewhere else?

I repeated this question on a separate thread, and put up a few more screen caps:

Adhoc install error and Keychain weirdness

As for the icon, yeah it was copied to the project (you can see it listed in the Resources folder in either of the XCode screen caps). It's in the info.plist file and the spelling is the same, and it's in the .app folder I am dragging over to iTunes, but still it's not showing up in iTunes. The simulator sees it, however. Very odd that.

As for cleaning and rebuilding. Well, I wasn't doing a Build & Go, just a Build, then zipping up and mailing the resultant "product." I did a Clean Targets before building, but it didn't make any difference. I'll try deleting the build folder and doing it that way to see if it makes a difference.

Can Xcode be run from a command line? I'm able to ssh into the machine, just not hit it over X11 or VNC.

Thanks for the suggestions!
shaendra is offline   Reply With Quote
Old 02-17-2010, 06:41 PM   #47 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 7
Unhappy Can't see images in this post..

How many posts do I need to see the images attached by others?

Quote:
Originally Posted by shaendra View Post
Can't remember if I did that. I'll check when I get home (cannot reach the Mac from work... darned firewalls!) Are you talking about in the "info" settings of the Project or of the Target, or a setting somewhere else?

I repeated this question on a separate thread, and put up a few more screen caps:

Adhoc install error and Keychain weirdness

As for the icon, yeah it was copied to the project (you can see it listed in the Resources folder in either of the XCode screen caps). It's in the info.plist file and the spelling is the same, and it's in the .app folder I am dragging over to iTunes, but still it's not showing up in iTunes. The simulator sees it, however. Very odd that.

As for cleaning and rebuilding. Well, I wasn't doing a Build & Go, just a Build, then zipping up and mailing the resultant "product." I did a Clean Targets before building, but it didn't make any difference. I'll try deleting the build folder and doing it that way to see if it makes a difference.

Can Xcode be run from a command line? I'm able to ssh into the machine, just not hit it over X11 or VNC.

Thanks for the suggestions!
kemetokara 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,143
Threads: 38,921
Posts: 170,763
Top Poster: smasher (2,565)
Welcome to our newest member, Pajolo
Powered by vBadvanced CMPS v3.1.0

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