Apple Mac install XCODE getting error when trying to install update - won't run without it

If anyone can assist.. have XCODE on IMAC not used in ages. Gone to open, wants to install update. But errors when tries so can no longer use.

thanks

2023-06-03 18:23:55+01 Apples-iMac-3 Xcode[2402]: Package: PKLeopardPackage <id=com.apple.pkg.MobileDevice, version=4.0.0.0.1.1539750769, url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg> Failed to verify with error: Error Domain=PKInstallErrorDomain Code=102 "The package “MobileDevice.pkg” is untrusted." UserInfo={NSLocalizedDescription=The package “MobileDevice.pkg” is untrusted., NSURL=MobileDevice.pkg -- file:///Applications/Xcode.app/Contents/Resources/Packages/, PKInstallPackageIdentifier=com.apple.pkg.MobileDevice, NSUnderlyingError=0x7faff2fb5c30 {Error Domain=NSOSStatusErrorDomain Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" UserInfo={SecTrustResult=5, PKTrustLevel=PKTrustLevelExpiredCertificate, NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED}}}

Running OS High Sierra - is a Mac (27-inch, Mid 2011) - don't know if that matters

What version of Xcode is installed on your Mac?

Gone to open, wants to install update. But errors when tries so can no longer use.

What specifically happens when you try to launch Xcode and it asks to install and update? List each step you take and be specific. The people on this forum aren't sitting next to you in front of your Mac. They can't read your mind. They can only go by what you write here. And you didn't write enough for people to help you.

It doesn't work

It creates a log file with errors

Apple Mac install XCODE getting error when trying to install update - won't run without it
 
 
Q