5

Tried to build the application to iOS device(any device iPhone X, XS, any OS like 12,13 beta) getting certificate issue.

want to build the app on ios 13 beta OS supported device and debug the issues. I am to build app on simulator. Automatic managing of certificates work fine on Xcode 10.2

should be able to install app on device from Xcode 11 beta for debugging.

Xcode 11 beta certificate issue

xcode 11 beta Image for reference

Maelig
  • 2,046
  • 4
  • 24
  • 49
SreekanthI
  • 393
  • 3
  • 13
  • 1
    Xcode 11 certificates are in a new format. You seem to have a certificate mismatch ("iOS Developer" is the old format, but "Apple Development" is the new format). I would suggest deleting all certificates and provisioning profiles and starting over. – matt Jul 09 '19 at 14:15
  • creating a new developer certificate fixed the issue. thanks – SreekanthI Jul 09 '19 at 19:39
  • Excellent, well done! I'll give my comment as an answer, because your problem and solution might be helpful to others. – matt Jul 09 '19 at 19:48

3 Answers3

5

Xcode 11 certificates are in a new format. Looking at your screen shot, you seem to have a certificate mismatch: "iOS Developer" is the old format, but "Apple Development" is the new format. If you're going to continue using Automatic Signing, I would suggest deleting all certificates and provisioning profiles and starting over.

matt
  • 515,959
  • 87
  • 875
  • 1,141
3

Login to developer.apple.com :

  1. Select provisioning profile which has certificate issue

  2. Go to Edit profile

  3. Select the correct certificate (For use in Xcode 11 or later)

  4. Save & Download profile and try to import latest one.

That's it!

pkamb
  • 33,281
  • 23
  • 160
  • 191
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
3

Xcode 11 has two new certificates called Apple (instead of iOS and Mac), by default Xcode tries to create the certificate based on your personal team which has a different prefix. I solved the problem by removing all those certs from KeyChain, then head to https://developer.apple.com/account/resources/certificates/add to create both Apple Development and Apple Distribution certificates, then clear the build and run again.

pkamb
  • 33,281
  • 23
  • 160
  • 191
Farhad Malekpour
  • 1,314
  • 13
  • 16
  • Bingo! I cleaned out my provisioning profiles and certificates, created all new ones and it installed no problem. – user1791914 Nov 26 '19 at 16:00