Unable to fix signing issue Xcode 7.3.1 - ios

I am trying to test my unity game on different iOS device using Xcode 7.3.1. Previously, I connect my iPhone 6 on mac and test the game successfully with free apple account(that has limited privilege).
Now I want to test that game on different device and later want to upload to app store. So I asked my client for apple id that has role "agent". I add apple id on Xcode and try to run the project with iPhone 6 connected. I got the error message saying-
"Your account already has a valid iOS Distribution certificate"
"You have a valid iOS Distribution certificate in the Member Center, but it is not installed locally. If your signing identity is installed on another Mac, you can export a developer profile on that Mac and import it on this Mac. You can also reset your current certificate."
Then I click on reset button to reset current certificate. And try to run the project again. Again I got the error message saying-
Unable to fix signing issue.
Xcode failed to resolve the issue. Check your code signing settings; ensure you have a matching signing certificate and provisioning profile installed; and try again.
I restarted Xcode many times but got the same error. Screenshot of my account details looks like below .
enter image description here

It is not enough, to login and download Developer profiles only.
You need that Certificate physically and signed in your mac as well.
Ak your client to export Signing identities and Provisioning Profiles.
This you will be able to import to you Xcode and Keychain in one step.
This process will help you handle private keys as well, as they are necessary if signing App using Developer/Distribution Certificate.
1) Your client has to export Identities and profiles:
2) He/She can send you them by e-mail:
3) You can import them all in one.
https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/export_signing_assets.html#//apple_ref/doc/uid/TP40013306-CH8-SW1
When recreation of Certificates and Provisioning Profiles is needed:
Make sure you have appropriate privileges - you have to be team agent or admin:
1) Login to https://developer.apple.com with your developer credentials.
2) Go to Certificates, IDs & Profiles
3) Go to Certificates and remove the old one. Then Add new:
4) This is few step process, that requires you to create Certificate signing request. Just follow steps that are stated there. The last action in this step will be installing that Certificates - when ready, just click on it/them and they seamlessly get to your Keychain.
5) When finished with Certificates, open Profiles, find those marked with yellow triangle and edit them. Check the new certificate (and devices if you are creating Development profile as well). I personally prefer creating brand new profiles, as it it'll be easier to recognise older ones and new ones in Build settings later.
6) You now have to update your Xcode -> Preferences -> Accounts section and Xcode does this for you.
7) Last step - update Build settings in your projects according to your new profiles. You should be ready to validate you project now.

Related

Your account already has a valid iOS Distribution certificate - Xcode error msg with signing app

When I try to use the 'Export > Save for Ad Hoc Deployment' option in Xcode I am presented with a dropdown menu where it says the following :
To Save for Ad Hoc Deployment, select a Development Team to use for provisioning:
I only have a single option so once I click 'Choose' I get the following error message:
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues: Your account already has a valid iOS Distribution certificate
When logging into my iOS Developer account I can see I currently have 3 iOS Distribution Certificates (5 in total) and all currently valid (e.g they expire in the future).
The Mac I am using is new, plus all the mobile iOS apps were developed by external developers/teams therefore I'm not sure which certificates I can safely remove.
As the certificates would have been made on other machines I don't have access to it isn't possible for me to simply export the existing developer profiles on these other Mac's and have them installed on my Mac. I'm also unsure if i can revoke current certificates? What is the worst that can happen when revoking current certificates?
As with most error messages in Xcode regarding certificates, it is not very helpful. I would do the following:
delete all the current certificates on your developer account
create new ones on your new machine MANUALLY (not through Xcode, so use the Keychain), this will make sure that the keys that sign your certificates are in your current keychain
update your provisioning profiles with the new certificates
sync the new profiles within Xcode (Preferences -> Accounts)
update your app settings
To this day I still manually do all my certificates and provisioning and while certainly not problem free, I don't seem to have nearly the nightmares that many people do. The only part of the process that I do let Xcode handle is to sync up the profiles.

Issue while generating IPA using Xcode 6.3.1

While trying to generate IPA for testing purposes, I receive a message:
"You have a valid iOS Distribution certificate in the Member Center, but it is not installed locally. If your signing identity is installed on another Mac, you export developer profile on that Mac and import it on this Mac. You can revoke current certificate and request a new one."
Why is this happening?
This is what worked for me.
On my machine I kept both Xcode 5 and Xcode 6 .
From Xcode 6 beta, Archive the project. Close Xcode 6.
Open Xcode 5, go to Organizer and export as Ad Hoc build with proper provisioning profile.
That's it!
Majority of these problems are very easily solvable by Fastlane. In no way I want to promote a product - it's an open-source tool and saved me hell lot of time.
It was Xcode bug.
When I tried to export developer profile from another system and installed in my system its working fine.
This worked for me
created new CSR (code signing request)
created new Distribution certificate with the CSR, once created go download and double click to install
create a app id if you dont already have one
create your distribution provisioning profile, select your app id and certificate you created
after you create it, go download, and double click to install
restart xcode
Go to Keychain Access
Keychain>Certificate Assistant> Request a Certificate from Certificate Authority.
Fill in the email. (keep others as default values)
Save the file.
Log in to Apple Member Center
Go to Certificate, profiles Provisioning Profiles
Click on Add button on top Right corner
Select App ID from the dropdown
Select the profile you wish to include.
Click on Generate and
Download the Distribution certificate
Open keychain Access
Go to file>Import Items
Select the Distribution certificate.
It should work now.
in my case everything was done as per the manual (I'm experienced in this stuff) but it turns out xcode was acting out.
I used the user local signing assets and I was done :)

xcode 6 unable to process application. The bundle '*' is not signed using an apple submission certificate

I'm running into the following error when using XCode 6 to validate or submit an ios app to the app store.
I know there are posts out there with this same error, but I've followed all the steps and still can't figure this out.
What I've tried.
Change "Valid Architectures" in Build Settings to
"$(ARCHS_STANDARD)".
Re-creating all certificates and
provisioning profiles. Deleting and re-downloading to local
computer. Syncing these via xcode account preferences page.
Installed the apple root certificates
Note. this builds and runs fine in debug mode, I can even export the archived app. It's only when validating.
Go to your Project's Target > Build Settings > Code Signing and check that your build schemas have the correct Provisioning Profile(s) selected.
Do this after you're sure that:
Your certificates are valid.
Your provisioning profile(s) are valid and that are using the correct App ID which should also exactly match the one in iTunes Connect. Also be sure the Provisioning Profile is an App Store Distribution one (be sure to name it accordingly so you can find it easily).
You've refreshed your account in Xcode > Preferences > Accounts > Your Account > View Details > Refresh.
After you've done all this steps and you're positive regarding your code signing selections, clean your project, select your device as the build device (even if it's not connected), Archive > Validate > Submit.
On XCODE 6.0.1 the issue was for me (OS X 10.10) to recreate new apple ID (although my apple ID was already there) so go to Preferences - Delete your current Apple ID account and + add again your apple ID. That did the trick.
So I ended up...
Creating a new user on my mac.
Copied the project over the one of the new users directory.
Deleted the ios distribution cert and re-created it along with new provisioning profiles.
Synced the new certs and profiles to my new user's directory and this fixed it.
So there had to be some mis-configuration with my existing user. When in doubt, start fresh and it may "just work"

No identities were available - administrator request not solved by previous answers

I get the "No identities were available - administrator request" issue
I have a valid certificate, a match boundle ID, a valid provisioning profile (distribution) I have two apps, both I published 3 weeks ago to the app store with the configuration I currently have.
the only thing that changed is that I upgrade my mac to 10.9 and my xcode to 5, but left my device at IOS6
now both my apps failed to validate with the above error.
I tried the steps in many other articles like No identities were available - administrator request
or Xcode 4.3.2: "No identities were available" - Where to request a Dev Identity?
or https://discussions.apple.com/message/21603155#21603155
and others
nothing works
any idea ?
I spent two days reading forums and searching the web and finally figured out the problem. Under your IOS provisioning profiles, you have to have a profile that is listed as ditribution under type. It also needs to be listed under your account in xcode (xcode>preferences>account>view details) if it is not listed there, click the refresh button to have it check itunes connect for your certificate. I tried deleting every certificate and everything from Certificates, Identifiers & Profiles and let xcode create new certificates, but xcode says it will add distribution stuff and doesn't. Make sure to use your provisioning profile that is a distribution type for your provisioning profile under your code signing in both of the app target build setting and the app project build settings.
I had to go into Applications -> Utilities -> Keychains on my Mac and remove expired certificates. After removing those, I had to generate new certificates through the IOS Developer Site and import those into the Keychains application. After doing so, return to Xcode and in Build Settings, verify you are using the new Code Signing Identity and Provisioning Profile. (You will need both recreated, as revoking the Identity will invalidate the Provisioning Profile.)

Provisioning Profile ERROR while running in iPad

I am using Xcode 4.6.3.
I am getting this error messages while running the application in iPad,But first it was running correctly. Now we have renewed our license so i have changed certificate and
profile.still the same error appears
Please help me...
you need to follow this step:-
You Provisioning profile Generate with developer certificate from iTunes dev center.
remove old install App from device may be you Ipad contain old profile reference.
After connect your device to Xcode-Organizer->device->yuorIpad->Provisioning--check there old Provisioning profile is ther or not. if there then remove it.
In your target And Project check-> your Identifier is currect or not for example com.yourprofile.yourId
In Build setting you->code signing ->selection profile is correct identifier or not
Now just clean your Project. Build and run.
EDIT
Do not forget to Adding New testing Device ID into your new Generate Provisioning profile. in iTunes Dev there is Column to adding Device and also asking Device while you Generate Provisioning profile. May be you forget this step.
be sure that you are generating provisioning profile after adding device, or when you're just renewing profile.
And your provisioning profile must be linked with certificate, that you have in keychain.
(certificate+key)
All devices must be readded on demand, after renewing dev program (!)
In general, It's pretty sraightforward (just try it from the clean sheet, delete all the old stuff)
1) cert signing request
2) appid (if new app, if old just skip, optional - apns stuff)
3) certificates dev/distr (import them)
4) devices
5) provisioning profiles (import them)
in xcode choose in all positions needed profile, sometimes choosing parent option do not change profile for all fields of "Signing Identity" in xcode.
Deleting of old provisioning profiles is optional, it's not a problem when you have many of them
it's only problem when signing identities are more then one, ie: old expired and new one.
(In xcode 5 it will be easier to choose identity)
EDIT: it really seems like in build settings in code signing identity select options (some option) an old profile is chosen, and xcode gives this error.

Resources