Xcode error - additional components required?

RedRoboRedRobo Member, PRO Posts: 682

I just tried to open Xcode for the first time since upgrading my Macmini to Mojave from High Sierra.

I get this issue and wondered if anyone can help?
First it says:
'Xcode requires additional components to support running and debugging etc...'

When I click install I then get the following error:
'An unknown error occurred. See the install log for more details.'

Anyone had similar and can offer any advice?

Comments

  • RedRoboRedRobo Member, PRO Posts: 682

    BTW the install log said this:

    2020-04-08 15:21:56+01 Macminis-Mini system_installd[562]: installd: Starting
    2020-04-08 15:21:56+01 Macminis-Mini system_installd[562]: installd: uid=0, euid=0
    2020-04-08 15:21:57+01 Macminis-Mini system_installd[562]: PackageKit: Adding client PKInstallDaemonClient pid=423, uid=501 (/Applications/Xcode.app/Contents/MacOS/Xcode)
    2020-04-08 15:21:57+01 Macminis-Mini installd[563]: installd: Starting
    2020-04-08 15:21:57+01 Macminis-Mini installd[563]: installd: uid=0, euid=0
    2020-04-08 15:21:57+01 Macminis-Mini installd[563]: PackageKit: Adding client PKInstallDaemonClient pid=423, uid=501 (/Applications/Xcode.app/Contents/MacOS/Xcode)
    2020-04-08 15:21:58+01 Macminis-Mini Xcode[423]: Package: PKLeopardPackage <id=com.apple.pkg.MobileDeviceDevelopment, version=10.3.9000000000.1.1488876279, url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg> Failed to verify with error: Error Domain=PKInstallErrorDomain Code=102 "The package “MobileDeviceDevelopment.pkg” is untrusted." UserInfo={NSLocalizedDescription=The package “MobileDeviceDevelopment.pkg” is untrusted., NSURL=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg, PKInstallPackageIdentifier=com.apple.pkg.MobileDeviceDevelopment, NSUnderlyingError=0x7fa6f0f5d8d0 {Error Domain=NSOSStatusErrorDomain Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5, PKTrustLevel=PKTrustLevelExpiredCertificate, NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    So no idea what is happening but something similar is happening with people installing GS on Mac and getting a notification that it's untrusted.

    The first thing to try is to make sure your clock is in sync. Then do security updates (because sometimes those involve updating SSL certs).

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    Looks like it is a certificate date thing, here are some things to try: https://stackoverflow.com/questions/58550284/mobiledevice-pkg-untrusted-cannot-open-xcode-after-os-x-update

  • RedRoboRedRobo Member, PRO Posts: 682

    Just in case anyone else has the same problem here is what fixed it for me:

    Set your date back to Oct 1st 2019. Run Xcode. It will then install all packages with no errors. Then set date back to current date. (Don't ask, I've no idea!!!)

    Thanks for the links @adent42

    Really wish publishing with iOS was as easy as Android! It always seems like creating the app is the easy bit! :#

Sign In or Register to comment.