Reputation: 1705
UPDATE: Since this question is getting some views, I figured I'd better highlight the fact that I solved the problem by simply re-downloading Xcode from the Mac App Store. Upon re-installing it even gave me a handy option to delete the previous version and replace it with the new one. Hopefully this helps everyone out there with the same problem! :)
So I'm trying to update my Xcode 4.2 which I downloaded from the app store, but I get this error when I use the 'Install Xcode.app' updater:
Anyone know what I'm doing wrong or how to fix it?
I'm not really sure what other information I should provide, so please just let me know if you want more info :)
Edit: Here is the full install.log (I think): http://pastebin.com/GTzkpL3X
This is an excerpt that actually shows the error:
Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 "The package “DeveloperTools.pkg” is untrusted." UserInfo=0x7f9d5da29060 {NSLocalizedDescription=The package “DeveloperTools.pkg” is untrusted., NSURL=../Packages/DeveloperTools.pkg -- file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Xcode.mpkg/, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSUnderlyingError=0x7f9d5d9eab40 "The operation couldn’t be completed. CSSMERR_TP_CERT_EXPIRED"}
Upvotes: 11
Views: 6628
Reputation:
open Date & Time of the system preferences and set the date a year before (in my case, maybe preferable date could be the date before Xcode 4.3 released.), and my installation successfully completed.
Upvotes: 24
Reputation: 17317
The following error shows up in the log:
Error Domain=PKInstallErrorDomain Code=102 "The package “DeveloperTools.pkg” is untrusted." UserInfo=0x7f9d5da29060 {NSLocalizedDescription=The package “DeveloperTools.pkg” is untrusted.
PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSUnderlyingError=0x7f9d5d9eab40 "The operation couldn’t be completed. CSSMERR_TP_CERT_EXPIRED"}
Looking around the internet I found the following suggestions:
Flattening the package
http://managingosx.wordpress.com/2012/03/24/fixing-packages-with-expired-signatures/
Update your system software:
Reinstall OS:
Delete files related to Xcode:
edit: reordered based on comments.
Upvotes: 5