How to add extra device to provisioning profile (error) - iphone

I have been running my app fine on iPhoneA in Xcode and now I want to run it on iPhoneB. I went to the portal online and created a new device. Then I edited my current provisioning profile to select iPhoneB. Downloaded it, dragged it into the provisioning profile section of iPhoneB in Xcode..and I get this error:
Valid signing identity not found
and
Xcode could not find a valid private key/certificate pair for this profile in your keychain
Anyone know what steps I'm missing out?

Related

Invalid Profile Issue in iPad

I tried to install a provisioning profile by sending it as a mail attachment. When I tried to open it there is an error message comming up saying 'Invalid Profile'. But when I double click the same profile in my MAC it added to Xcode without any problem. When I go and see organizer it says valid profile. Can some one please help me to solve this problem
No need to install provisioning profile into device. Though you can install it, but it will install automatically when IPA get installed.
The error you getting, shows that the provisioning profile, you trying to install, does not include your device UUID. In xcode, it shows valid profile because xcode will check only for certificates and private key associated with that profile. Xcode will not check for which devices are included with proviosioning profile.

IPhone - code sign, provisioning, certificate

I'm trying to generate an IPA file for test in some devices, but when I try to install in these devices with IPhone Configuration Utility, I receive this message: "A valid provisioning profile for this executable was not found ".
I double-checked the certificate and provisioning(distribution), the Project-> Build Settings -> Code Signing and Target -> Build Settings -> Code Signing Identity are correct too.
Something that I realised is when I try Archive -> Share, the Identity has no valid provisioning profile (look at the picture):
Valid XHTML http://tlab.in/codesign.png.
I googled all the day and I couldn't find anything that would help. Any ideas?
Here are common issues that you should review:
In your Provisioning Portal (in the Apple Developer site), make sure to have Distribution tab a valid and Active Distribution Provisioning Profile, and it should be of type AdHoc.
Make sure that you have added the device ID into the profile of step 1.
Make sure that you have written the correct Bundle Identifier in your project (the one that says com.yourcompany.yourproject)
Check that you have set in Xcode the Build Settings->Code Signing->Release to the correct identifier.
After these steps you should be able to press on the combobox of the image you provided and select the AdHoc certificate.
Sometimes you might need to manually delete old Provisioning Profiles from the devices that you are testing (from Settings->General->Profiles).
I hope this helps you
In this case, there is no valid AdHoc provisioning profile for the bundle ID that you assigned to the application. If you are going to create an IPA to share - it needs to be an AdHoc profile - and be sure that bundle ID matches.

Having problems submitting an iphone app

im getting these errors:
The Bundle ID Hasselknippe-Solutions.iTangera defined in your Xcode
Project does not match the Bundle ID that you entered for this app in
iTunes Connect com.Hasselknippe-Design.iTangera.
and
Application failed codesign verification. The signature was invalid,
or it was not signed with an iPhone Distribution Certificate.
How to i fix these errors?
Thanks
Steps to solve this problem (assuming your Apple Provisioning Portal is correctly behaving)
1) Go to organizer
2) Provisioning profile and delete everything.
3) Check "Automatic Device Provisioning" and hit refresh (You will get all your profile back).
4) Go to "Build setting" and use new Provisioning profile.
5) Go to your identifier in summary and check does it match to app ID in Apple developer portal or not.
You need to be extremely meticulous in getting all your provisioning profiles to match. I'd start over with my provisioning profiles, making sure you have a distribution one.
You need to make sure all 3 of the below match, and should NOT have the 10 digit Apple ID prefix
Bundle ID in Xcode (Targets -> Info -> Bundle Identifier)
App ID in Provisioning Portal
Bundle ID in iTunes Connect for your app (i messed up here, make sure you create this only after everything is configured in Provisioning Portal)

a valid signing identity not be found?

I am trying to create a distribution build with mono for days already... I got the distribution provisioning profile and the distribution certificate from our "team agent" and drag-dropped seperately onto xcode-organizer and keychain-access, but still, there's the warning message showing :
"A valid signing identity matching this profile could not be found in your keychain."
and I couldn't make the distribution build still. Any idea which step I made it wrong? Please advice; much appreciated!
Thanks,
ab.yyang
It sounds like you only have the provision file and the certificate from Apple, but not the original private key used to request the certificate.
If that's the case, you either have to ask whoever created it for a copy of private key, or you'll need to generate entirely new keys, request a new certificate and create a new provision file.
open Keychain Access
erase everything in 'Keys' and 'Certificates'
open Xcode and erase all provisioning data
goto Provisioning Portal and revoke your certificate
create a new one, and use launch assistant
If this happen after renewing the DEVELOPER CERTIFICATE,
my fix to the problem was going to the apple provision profile, modify the development provision and checkbox the certificate.(suppose to be empty checkbox near the certificate name).
then, you can : download and install the provision manually by dragging to xcode
or going to Organizer-Library(on the left)-Provision Profiles, and click the "refresh" button(in the bottom of screen), this will download the new provision profile that "connected" to the new CERTIFICATE and the warning will disappear.
If you are building to run on a physical device, you need to be enrolled in the iOS Developer Program. From there you go to the Developer Portal to generate a Provisioning Profile. That profile gets loaded to Xcode via the Organizer window.
Have you done those steps?

"A valid provisioning profile for this executable was not found." What does this message mean?

I got this error message when building MyApp using a Distribution Provisioning Profile.
However, it succeeded when built with a Development Provisioning Profile.
What does this message mean?
My device is an iPhone 3GS with iOS4 installed. I created a certificate following Apple's documentation and I created an App ID, Development Provisioning Profile and a Distribution Profile.
I created Build Info (create Distribution activity (duplicated Release) and selected my Distribution Provisioning Profile.
Image Link http://a.yfrog.com/img706/5572/nhk.png
the value of theBundle Identifier Key within your info.plist file must match the App-ID that you have assigned to your provisioning profile in the portal.
another reason could be, that said provisioning profile is indeed not installed on the computer you're developing on. In that case you simply download your profile and open it. it will then appear in XCODE's Organizer Window.
hope I could help
sam