Xcode 4.2 install for Snow Leopard fails with an OpenGLApps.pkg

installsnow leopardxcode

During an install of XCode 4.2 for Snow Leopard (this is on a brand new install of Mac OSX that has been updated to the latest OSX version), I'm getting the following error in the /var/log/install.log file.

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

The installer indicates a generic error and suggests to try the install again or contact the vendor.

Based on the entry in install.log, I'm guessing that there may be a way to force the OpenGLApps package to ignore the cert check.

This install was downloaded today from apple's developer website under Other Downloads.

Best Answer

Dave, your post and subsequent answer were just what I needed, and very refreshing indeed. I was getting the same error and log output, trying to install Xcode 3.2.6 with iOS 4.3 on OS 10.6.8 (the untrusted package in this case was iPhoneSDKTools.pkg). I had tried a bunch of other things, to no avail.

When I followed your suggestion and checked for updates, it listed one for Safari (including some security-related fixes) plus another for the Application Installer (or something similar) - the description for that mentioned something about fixing problems installing certain apps on 10.6.8! After doing those updates the Xcode install finally worked. I'm pretty sure it was the Application Installer. I didn't have to download a fresh Xcode installer, I just used the one I'd been trying to use all along.

Other posts I'd found recommended reinstalling Snow Leopard, which seemed a bit extreme and didn't answer why it was happening. I think you've hit on the real issue and a nice straightforward easy solution. Thanks. I can now abandon my plans to leap into the Abyss.