Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 beta unable to install app on device ending with certificate issue

Tags:

xcode

ios

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

like image 777
SreekanthI Avatar asked Jul 09 '19 13:07

SreekanthI


People also ask

What certificate are required for running the app on device in iOS?

A signing certificate with the public and private key. On iOS, iPadOS, watchOS, or tvOS you need a distribution certificate; on macOS you need a development certificate.

What is certificate in Xcode?

A development certificate is how Apple devices verify that your App comes from a trusted source and is required in order to publish your App! We will also walk through setting up a provisioning profile, which is a manifest of all the developers and devices that are linked to your account.


2 Answers

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.

like image 53
matt Avatar answered Oct 09 '22 21:10

matt


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.

like image 3
Farhad Malekpour Avatar answered Oct 09 '22 20:10

Farhad Malekpour