title: MobileDevice.pkg untrusted, cannot open Xcode after OS X update
body: <p>After an automatic update of <a href="https://en.wikipedia.org/wiki/MacOS_Catalina" rel="noreferrer">macOS v10.15</a> (Catalina), I am unable to open Xcode. Xcode prompts me to install additional components but the installation fails because of MobileDevice.pkg (Applications/Xcode.app/Contents/Resources/Packages)</p>
  
  <p>I have found multiple answers on how to locate MobileDevice.pkg and that I should try to install it directly, but when I try to do this the installation fails too. I have also tried updating Xcode from <a href="https://en.wikipedia.org/wiki/App_Store_(macOS)" rel="noreferrer">App Store</a>, but the update failed when it was nearly finished.</p>
  
  <p>Has anyone experienced the same behaviour? Should I reset the Mac to default and install <a href="https://en.wikipedia.org/wiki/MacOS_High_Sierra" rel="noreferrer">macOS v10.13</a> (High Sierra) or Catalina from scratch or it is a problem of Xcode and re-install would do the job?</p>
  
  <p>I have found a discussion <a href="https://discussions.apple.com/thread/250782804" rel="noreferrer">here</a> that was posted today and is probably regarding the same issue and it seems like many people are dealing with it, too.</p>
  
   
  
  <p>The log:</p>
  
  <pre class="lang-python prettyprint-override"><code>*2019-10-25 01:03:34+02 Vendula-MacBook-Pro Xcode[1567]: Package: PKLeopardPackage 
  &lt;id=com.apple.pkg.MobileDevice, version=4.0.0.0.1.1567124787, url=file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg&gt; 
  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=0x7fabf6626d00 
    {
      Error Domain=NSOSStatusErrorDomain 
      Code=-2147409654 "CSSMERR_TP_CERT_EXPIRED" 
      UserInfo={
        SecTrustResult=5, 
        PKTrustLevel=PKTrustLevelExpiredCertificate,   
        NSLocalizedFailureReason=CSSMERR_TP_CERT_EXPIRED
      }
    }
  }*
  </code></pre>