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.
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.
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.
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.
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.
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."
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
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.
* 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?
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!)
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.
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.
+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
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....
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.
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
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.
oh yeah, also check that your bundle id matches whatever you specified on for the provisioning profile.
Quote:
Originally Posted by gfxblit
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.
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:
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.
How many posts do I need to see the images attached by others?
Quote:
Originally Posted by shaendra
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:
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.