13

I am making a new app, and just started to try and launch on an actual phone but continue to get the error below

The certificate used to sign "APP" has either expired or has been revoked. 
An updated certificate is required to sign and install the application.

Here is what I have tried to fix it

  1. Remove all certificates from developer account
  2. Remove all certificates from KeychainAccess
  3. Remove account from Xcode & close Xcode
  4. Re-add account to Xcode
  5. Check "Automatically manage signing" & have Xcode generate the signing

But I continue to get the error,

I have also tried manually generating a Certificate and manually Provisioning Profile, not using the "Automatically manage signing", and selecting the Profile which shows not build errors and when I click the info button says expires in 11 months and has all checkmarks

How can I fix this error?

Thank you very much for help in advance.

EDIT

I am now trying to do this manually, here are steps I take,

  1. Revoke all certificates and delete all Prov. Profiles From Member Center and Local Machine
  2. Create Certificate in member center with Keychain Access download and add the Cert to Keychain
  3. Make Provisional Profile in Member Center, download Profile and import profile into Xcode
  4. Run app, still get same error

What am I doing wrong?

Thanks

iqueqiorio
  • 1,149
  • 2
  • 35
  • 78

2 Answers2

4
  1. Sign in your account under Xcode->Preferences.
  2. Select the team.
  3. General->Signing , uncheck automatic signing
  4. General->Signing(Debug), select the provisioning profile you have just created.
  5. General->Signing(Release), select the provisioning profile you have just created.

Everything should work now..

Do2
  • 1,751
  • 1
  • 16
  • 28
  • 1.You didn't say that you are only in development. 2. I said "generally". 3. The second sentence in your comment does t make sense, maybe rephrase? 4. What are you actually asking?! In your last paragraph you say that you have no build errors and then you continue saying how to fix the error! That makes no sense. – Do2 Sep 18 '16 at 12:21
  • See edit please – iqueqiorio Sep 19 '16 at 13:03
  • I have replicated the issue at my end, did the above steps and fixed it. I have updated my answer.. Let me know how it goes.. – Do2 Sep 19 '16 at 14:15
  • I haven't created a release profile yet, can i leave that empty? – iqueqiorio Sep 19 '16 at 14:20
  • Create a release profile, or use the same one as debug for the time being.. – Do2 Sep 19 '16 at 14:22
  • In preferences under the account I have the Company with Role of Agent and then my anew with role of user which should i use – iqueqiorio Sep 19 '16 at 14:25
  • I only need one so i use the Agent, i don't know your setup.. Just use Agent.. – Do2 Sep 19 '16 at 14:26
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/123708/discussion-between-do2-and-iqueqiorio). – Do2 Sep 19 '16 at 14:30
1

Try this in the following steps (you have made most of them as you have stated but try them in the following order):

  1. In the list with the view that you have attached, right click on each row and move each certificate to trash
  2. Go to member center download the right certificates again and click on them so
  3. Restart Xcode
  4. Go to build settings and set the right Code signing for debug/release - you should be able to see an option on the row that says "Identities from profile..."

If this doesn't work then you should consider revoking your certificate and then create a new one and the do the steps above again.

Edit:
First, move the apps source files to a new directory.

After that do the 1-4 steps from above.

Rashwan L
  • 38,237
  • 7
  • 103
  • 107