I am totally aware of billions how to and forum discussions out there about this issue. Because I could not find the solution I'm writing here.
Typical situation: I want a co-worker to test my App. I thought on Ad-Hoc distribution. I followed every kind of tutorials. But I receive always a "valid signer" issue in iTunes.
Basically:
1) have a distribution certification which works like a charm to upload apps to iTunes;
2) add UUID number of my friend's iPhone in the portal
3) use the same App ID I used till now for the AppStore xxxxxx.* so that in the Bundle Identifier I can insert, like always for the appstore, com.mydomain.nameoftheapp
4) create a provisioning file, Distribution, where I check my and my friend's iPhone
5) add it to xCode, dragging it to icon in the dock
6) create the Entitlements.plist and uncheck the only field in it
6) create a copy of Release, named Distribution and set it active
7) leave untouched the parameters in the PROJECT
8) in the TARGET, add the Entitlements.plist in Code Signing Entitlements and the provisioning file (which is present and black, not gray) under Any OS Device, leaving blank Code Signing Identity
9) Add an icon, like always, PNG 57x57
Now, I clean all the targets and then I build. Drag both the mobile provisioning file and the .app to iTunes. Rather than to send it to my friend, I try with my iPhone. But the error is always the same. Can't install because of not valid signer...
Can you help me? I can provide you with screenshots and everything it may help...
Thank you so much!
Fabio
I had the same problem, the process described in this post from the Apple developer forums solved it for me:
Remove any versions of the
application from iTunes.
Drag the mobile provision file to iTunes (it seems like nothing happened but continue on)
Sync the iPhone (again nothing should appear any different)
Drag the app to iTunes
Sync the iPhone a second time.
Good luck!
Related
I have a xcode project that I would like to distribute to collegues of mine, I have therefore added all my collegues UDID in the devices section of the provisioning portal, I then downloaded the distribute and the Ad hoc provisioning files and clicked on them so that they came in to my organazizer. I then used them in xcode and selected "build-archive", I then followed this guide http://gknops.github.com/adHocGenerate/ to make a wireless app distribution. And uploaded the provisiong file, plist file and the ipa file. But when I try to install the app using the link in my html file it start to install but fail with this message " "Appnamexxxx" could not be installed right now". I dont know what I'm doing wrong and the error I get doesn't tell me anything...
I found the reason why it didn't work. I had entered the UDID of all the devices in the provisioning portal, but I didn't check that they where supposed to be used with that profile. I thought that if I entered UDID they where automatically selected to be used with the profile, this I found out by pure luck when trying to find the reason for this in the portal. So one have to select the provisionig and choose edit, then you have the reason to check/uncheck the UDID's you want in that profile. Hope this can help others too.
Hello there try to use betabuilder.http://www.hanchorllc.com/2010/08/24/introducing-ios-beta-builder/
What follows applies only to Xcode 4.3.1 and 4.3.2, but not earlier versions. Also, I have iOS 5.1 on my iPad.
My app, built with my ad-hoc provisioning profile, failed to install via iTunes on my real iPad. In desperation, I have also tried my wild card profile, my app store release profile and my development profile ... still no install.
In an effort to also provide pictures for what I have, please take a look at the following:
1) Provisioning Profiles in the Finder:
http://webpages.charter.net/jolove/Forum_Graphics/1.png
2) Xcode Target:
http://webpages.charter.net/jolove/Forum_Graphics/2.png
3) Xcode Signing Identity popup:
http://webpages.charter.net/jolove/Forum_Graphics/3.png
4) Xcode Organizer:
http://webpages.charter.net/jolove/Forum_Graphics/4.png
Now, what's really weird is that if I refresh (via the icon in lower-right corner), the Ad Hoc Distribution and the App Store Release profiles disappear both in the Organizer and in the Finder folder "Provisioning Profiles".
5) Even with this disappearance, in my iOS Provisioning Portal all is intact:
http://webpages.charter.net/jolove/Forum_Graphics/5.png
http://webpages.charter.net/jolove/Forum_Graphics/6.png
http://webpages.charter.net/jolove/Forum_Graphics/7.png
I really have been tackling this problem for over a week. Other forums have said I have a problem with the Provisioning Profile. I accept that, but I honestly do not know what the problem is, especially since the problem just surfaced with Xcode 4.3.
John Love
At precisely 0726 hours on April 1st, I just successfully installed my Ad Hoc app on my real iPad.
PROBLEM:
1) had Entitlements.plist "get task allow" set to YES.
2) should have been NO for a Ad Hoc distribution
3) however, according to my very good friend, TN 2250:
You only need to specify a custom Code Signing Entitlements file if your application is utilizing custom keychain access sharing or iCloud
4) so, I deleted it from the Projects / Targets
SUCCESS!
P.S. this is no joke, in spite of the date
John Love
I have been reading several tutorials and watching some iTube videos to see how I best prepare my app for Ad Hoc distribution. However the information I got is not really consistent, it goes from the 5 step explanation from the Developer Center of Apple to a almost 3 minutes video, where I would have to set some Code Signing options in XCode, create and zip the Archive etc.
My questions:
1.
Is there a tutorial available, which explains everything required, but not too much? I somehow feel, for instance, that code signing is not really required.
2.
After I tried to install the app using iTunes, the synch claimed that it was not able to install it. Is there some log available in iTunes, so I can check for further error details?
3.
How about switching from Ad Hoc distribution mode to normal developer mode? After I followed the steps from the video and prepared my app for Ad Hoc distribution, I was not able to install it on my device anymore, I got the error
Build target Abiliator
Check dependencies
[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0'
This is the video tutorial on iTube I followed: Demo of iPhone app Ad Hoc distribution
Thanks for your feedback and have a great weekend.
OK, looked up the Error
" the following job tried to hijack the service..." and saw that a reboot of the iPhone may solve the issue... and guess what, I was chasing a phantom all day long.....
It works perfectly.
So last hint for anyone, having a similar issue, after installing an app via Ad Hoc the first time: Reboot iPhone, otherwise the app may crash.
Cheers and now good nite :-)
PS: Just to round this thread up here the steps I did at the end (as mentioned, I am using XCode 4.2.1) :
Added my device on the Provisioning Portal (this had been done long time ago, however it is an important step, as the beta testers device IDs also need to be registered here before you re-create and download the distribution profile)
Created and downloaded an iOS Distribution Certificate in the Provisioning Portal
Imported the certificate in my Keychain
Created a Ad Hoc Provisioning File in the Provisioning Portal
Downloaded that profile
Double clicked the profile, which added it to the XCode Organizer Provisioning Profile Section)
Added the options Any SDK and Any iOS SDK in for Ad Hoc Distribution Code Signing Identity in the Code Signing section of my project AND my target and set the values with my Ad Hoc Provisioning File I just created and imported
Made sure the option in my app .plist file "Application requires iPhone environment" was set to true
Ran a clean (Product / Clean) and then a build only (Product Build)
Made sure the app was not installed on my iPhone (as I was testing before via XCode)
Copied the target (group Products via Show in Finder) to iTunes via Drag and Drop (I dropped it into the Media section)
Copied the Ad Hoc Provisioning File into iTunes via Drag and Drop (also to the Media section)
Made sure the app was checked for the synch, synched iTunes with the iPhone
Lastly rebooted my iPhone! However, I am pretty sure, that this might occur on the Developers device only. I assume that the reason for that was a process, still remaining on the iPhone, from my last test via XCode.
I did not use an entitlements file. I have actually to find out, what that file is really for, I have read that it might be required only, if using iCloud. And XCode 4.2 developers, there is nothing like File / New / Entitlement Template anymore in XCode. The file is created as soon as you check the option Entitlements and give the file your desired name in the Summary tab of your target.
You may also want to download the iPhone Configuration Utility from apple
I will also recommend this to my beta testers, as it allows you to see the console log of the iPhone, which of course might be very helpful in case of errors.
Hope this summary helps others, setting up their app for the first Ad Hoc distribution.
Cheers, René
code signing is simple.
first you create a mobileprovisioning profile for your apps bundle identifier also add the devices you want to built the app for. for adhoc build do it in distibution tab. download it, double click add it to keychain.
now you tak your app in xcode.select coreect profile(code signing). set command line build to distribution, oh i forgot create a new file(entitlements.plist) set debug inside it to false, add its relative path in the target, just above codesigning specified. now select the iosdevice on top left(where you select the simulator) press command+b to build the app. the app would be in the products folder(at the bottom) locate it in finder drag it to itunes, may be provisioning profile too, and sync it. done.
Go to https://developer.apple.com/devcenter/ios/index.action and login. You can find 'iOS provisioning portal'. And after going there, choose 'Distribution' section. Select "HOW TO", you can find necessary steps there.
I have found a problem trying to install an ad hoc distribution on my itunes.
1) I have distribution certificate
2) I have distribution profile
3) I have add entitlements.plist, although from what I read this is no longer required. it looks like the plist does not even have a get-task-allow bool anymore to set. I have tried with adding this and leaving it, as well as no entitlments.plist
After compiling (which goes off without a hitch), I drag the application to my itunes. It looks like it works (although no loading time), and asks if I want to replace a mobileprovision file that already exists (if I do it multiple times).
The App icon never appears in itunes, syncing does nothing. Its as if it isn't getting copied, but there isn't an error message to tell me what i'm doing wrong. This was working last month with a different app. I do not understand why it isn't working now...
Thanks,
Chris
If you are running iOS 4, you can use over-the-air distribution to install an AdHoc build directly from Mobile Safari. This is a little painful to setup the first time, but removes the hassle of having to mess with iTunes from the process.
http://jeffreysambells.com/posts/2010/06/22/ios-wireless-app-distribution/
I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
At first it seems a complex process, but it's pretty straightforward when you've been through it a few times.
In a nutshell the process is this:
(I'm assuming you've set up your iPhone/iPod touch as a test device)
Via the iPhone Developer Portal
Create an App ID
(give your application a name, this is just for reference on the website and nothing to do with your own build of your application)
enter a string to identify it, like com.yourcompany.appname
(this is important and should be the same as in your .plist file inside Xcode)
Click and Save this
Go to Provisioning
There are 2 provisioning profiles you'll need
a) development - so you can install your application on a test device (i.e. your iPhone / iPod touch)
b) distribution - if you want to sell the application via the App Store
You can create the profiles by selecting your App ID, created in the previous step, from the drop down list and clicking Save
In a few moments (usually, though it can be longer) the certificate is available for download. Download this to your Mac and drop it onto the Xcode icon. Sometimes the development profile doesn't work for me like this and I drop it directly into the Organiser window in Xcode that shows my connected device.
Besides, if you are in a team account, team admin need to edit Development Provisioning Profiles, and add modify your certificates privilege.
In Xcode inside 'Edit Project Settings' you can select the certificate you wish to code sign with. Usually for debug I sign with the development certificate. Follow the instructions on the apple site and clone the release profile and call it something like release and sign this with your distribution profile. (You won't be able to load the app onto your phone with the distribution profile selected)
Make sure you select the target device as Device and not Simulator when building for the App Store!
Hope that helps, it's from memory so apologies if I've skipped some small steps.
xcode top left corner make sure you're running as "similator" "iphone"
Did you set up an iPhone provisioning profile for either development, ad hoc distribution, or app store distribution?
If not go to the iPhone developer program portal, which is linked from the developer.apple.com/iphone. Apple has provided a great series of video tutorials.
Just make sure you install the certificates or the profile won't be selectable in the project configuration. When you download the certificates double-click on them to install.
Possibly more use for others seeing this issue on a previously configured dev environment.
This error is also shown if your provisioning profile has expired, in this case you can go through the steps in Neosionnach's answer or you can go to Organizer, click on the profile and click Refresh.
This was the winner for me when I had this issue.
As of July 2012, you can go here:
https://developer.apple.com/ios/manage/overview/index.action
Then launch the "Development Provisioning Assistant." It walks through all the steps outlined by FiddleMeRagged.
You can use this process to create a Wildcard ID, if you're just looking to test your app on your iOS device and don't need to deploy to the App Store right away.