Install Xcode 4.2 on Snow Leopard

    It would seem - all this was done last year and this should not cause any problems. But it was not there. Today, there was a need to restore the system from backup, and there is the old Xcode. It seems that the problem is not great: the developer account is in order - go to developer.apple.com/xcode and download it. But there Xcode 4.3.2, and, as you know, it is put only on Lion ...

    There are various reasons why some choose not to upgrade to Lion: someone did not like it; someone decided to save on learning that the next version will be very soon; someone just has everything set up and too lazy to change what works anyway; and someone had a hard time installing the hackintosh on a system with an AMD processor and his Lion just won’t work. This is a topic for another discussion. It is important that I do not want to upgrade the system to Lion. Especially now, when a couple of months remained before the mountain lion. All I need is an SDK for iOS 5. This SDK is in Xcode 4.2 and it worked perfectly and was completely fine.

    In additional downloads, the required version was still found. But after downloading, I constantly received an unknown error:

    image

    The cause of the error was found in /var/log/install.log:

    Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 UserInfo=0x1112aab20 "The package “OpenGLApps.pkg” is untrusted." Underlying Error=(Error Domain=NSOSStatusErrorDomain Code=-2147409654 UserInfo=0x1126642c0 "The operation couldn’t be completed. CSSMERR_TP_CERT_EXPIRED")

    Obviously, the problem is with the certificate for “OpenGLApps.pkg”. Googling on CSSMERR_TP_CERT_EXPIRED led to stackoverflow . The solution is trite to disgrace - stupidly set the date further into the past when the certificate was still valid.

    Actually, the essence of the post:

    1. Xcode 4.2 for Snow Leopard is on the Apple website (you need to have a developer account and be logged in to download)
    2. For everything to install, just change the date (they say on stackoverflow - until March 26, 2012)

    Also popular now: