23

I am trying to install Xcode 4.2 on my Mac system having OS version 10.6.8. Actually, I removed the Xcode from the system and tried to reinstall it.

I quit iTunes before installing it, and I have enough free space on disc (111 GB). Below is a screenshot of the error. What should I do?

Screnshot

6
  • Have you downloaded the original digital download from developer.apple.com/xcode
    – Charan
    Apr 1, 2012 at 12:57
  • 1
    111mb doesn't sound like a whole lot. You may have run out of scratch space.
    – Hot Licks
    Apr 1, 2012 at 13:02
  • @Sree....yes i downloaded the dmg from the same!
    – adi27
    Apr 1, 2012 at 13:09
  • @HotLicks..sorry its 111GB!It was a mistake!
    – adi27
    Apr 1, 2012 at 13:09
  • I have faced the problem once, i have restarted the system and then i made the installation, it worked well
    – Charan
    Apr 1, 2012 at 13:11

4 Answers 4

73

Set your system time to 1st January 2012 or earlier (but not too early), as the certificate that signed the package has expired.

11
  • No problem - can you please click the outline of a tick to mark my answer as accepted? (stackoverflow.com/faq#howtoask)
    – jrtc27
    Apr 1, 2012 at 17:10
  • It almost look like April Fools, nice answer.
    – fbernardo
    Apr 5, 2012 at 0:59
  • 4
    It behaves that way because the package is signed by Apple's certificate. If there is a signature mismatch or the certificate has expired, to protect you, Apple disables Xcode from being installed. Therefore by rewinding your computer's date you trick it into thinking that the certificate is valid. If only the error message were more helpful...!
    – jrtc27
    Apr 6, 2012 at 22:26
  • 1
    Changing the date solved the issue. But I wonder how did that idea came to your mind? The error message did not say anything about certificate being expired. Jun 15, 2012 at 3:03
  • 1
    There was a very similar question on here which had a more detailed error message relating to invalid certificates, and so with the help of Google I pinned the problem down to an expired certificate.
    – jrtc27
    Jun 15, 2012 at 6:00
2

I had the same error message. In my case, it was solved by updating the OS software. There was an update waiting for "Apple installations software". After the update, Xcode installed perfectly well.

0

I found out I could download the installer directly from Apple instead of through the app store, and that the error described by the accepted answer could also be circumvented by installing the Mobile Development Framework manually.

See forum post Problems installing Xcode on Lion for more details.

0

I had the same trouble on Mac OS 10.8.5 when installing Xcode 4.4.1, Xcode 5.1.1, and Security_Update_2014-005. It turned out that the reason was the same in all these cases: an incompatibility with Vodafone/Huawei UMTS drivers. A workaround in this case is to temporarily move them away, e.g.

mv /System/Library/Extensions/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} ~

Then do the installation/update, and then restore those drivers, e.g.,

mv ~/{HuaweiDataCardDriver.kext,Vodafone.kext,VodafoneFilter.kext} /System/Library/Extensions/

Not the answer you're looking for? Browse other questions tagged or ask your own question.