如何在 Lion(10.7.3) 中安装 XCode 3.2.6
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10058762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to install XCode 3.2.6 in Lion(10.7.3)
提问by neztreh
i've been pulling my hair for two days in installing XCode 3.2.6 on my machine, Lion 10.7.3, but up to now I have no luck. i've followed the installation instruction here: Installing Xcode 3.2.6 On Lion Reduxand here Installing Xcode 3.2.6 in Mac OS X Lion (10.7)but both are not working. Im always getting an installation unknown error, please refer to the attached image. Please help.. Thank you very much.
我在我的机器 Lion 10.7.3 上安装 XCode 3.2.6 已经两天了,但到目前为止我没有运气。我在这里按照安装说明:安装的Xcode 3.2.6在狮子终极版,在这里在Mac OS X狮子(10.7)安装的Xcode 3.2.6但两者都没有工作。我总是遇到安装未知错误,请参考附图。请帮忙。。非常感谢。
Machine: Macbook OS: Mac OS X Lion 10.7.3 With XCode 4.3 installed
机器:Macbook 操作系统:Mac OS X Lion 10.7.3 安装了 XCode 4.3
Apr 8 17:14:27 mo-macbook Installer[326]: Set authorization level to root for session
Apr 8 17:14:28 mo-macbook Installer[326]: Will use PK session
Apr 8 17:14:28 mo-macbook Installer[326]: Starting installation:
Apr 8 17:14:28 mo-macbook Installer[326]: Configuring volume "Mac OS X"
Apr 8 17:14:28 mo-macbook Installer[326]: Preparing disk for local booted install.
Apr 8 17:14:28 mo-macbook Installer[326]: Free space on "Mac OS X": 108.39 GB (108385030144 bytes).
Apr 8 17:14:28 mo-macbook Installer[326]: Create temporary directory "/var/folders/g8/87n3y6s561x_62y3d9h7y5480000gn/T//Install.326LicomV"
Apr 8 17:14:28 mo-macbook Installer[326]: IFPKInstallElement (22 packages)
Apr 8 17:14:28 mo-macbook Installer[326]: Using authorization level of root for IFPKInstallElement
Apr 8 17:14:29 mo-macbook Installer[326]: Failed install preflight: Error Domain=PKInstallErrorDomain Code=102 "The package “iPhoneSDK4_3.pkg” is untrusted." UserInfo=0x7c375830 {PKInstallPackageIdentifier=com.apple.pkg.iPhoneSDK4_3, NSLocalizedDescription=The package “iPhoneSDK4_3.pkg” is untrusted., NSUnderlyingError=0x7c3e0d30 "The operation couldn't be completed. CSSMERR_TP_CERT_EXPIRED", NSURL=../Packages/iPhoneSDK4_3.pkg -- file://localhost/Volumes/Xcode%20and%20iOS%20SDK/Xcode%20and%20iOS%20SDK.mpkg/}
Apr 8 17:14:29 mo-macbook Installer[326]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Apr 8 17:14:29 mo-macbook Installer[326]: IFDInstallController 7AE66E10 state = 7
Apr 8 17:14:29 mo-macbook Installer[326]: Displaying 'Install Failed' UI.
Apr 8 17:14:29 mo-macbook Installer[326]: 'Install Failed' UI displayed message:'An unknown installation error occurred.
The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
回答by Aniruddh Joshi
I solved this error by setting my clock to 01-01-2012.
我通过将时钟设置为 01-01-2012 解决了这个错误。
It's weird, but installation was completed successfully after that.
很奇怪,但之后安装成功完成。
回答by neztreh
Finally, I got this working. This error "The operation couldn't be completed. CSSMERR_TP_CERT_EXPIRED" point me to this site Fixing packages with expired signatures.
最后,我得到了这个工作。此错误“无法完成操作。CSSMERR_TP_CERT_EXPIRED”将我指向此站点修复带有过期签名的包。
Steps:
脚步:
- Flattened the disc image using this script flatpkgfixer.py
- Mount my disc image
- Execute this command in Terminal, export COMMAND_LINE_INSTALL=1
- And open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
- 使用此脚本flatpkgfixer.py 压平光盘映像
- 挂载我的光盘映像
- 在终端执行这个命令,export COMMAND_LINE_INSTALL=1
- 并打开“/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg”
And XCode 3.2.6 installs successfully on my Lion 10.7.3. Cheers!
XCode 3.2.6 成功安装在我的 Lion 10.7.3 上。干杯!
回答by Robert
Setting the date back to 2011 worked for me. The exact error I saw in the log was IFDInstallController 7912F940 state = 7
将日期设置回 2011 年对我有用。我在日志中看到的确切错误是 IFDInstallController 7912F940 state = 7
回答by Ken Thomases
Run Software Update. It should offer the "Apple Software Installer Update". Install that. I think it should fix the issue.
运行软件更新。它应该提供“Apple 软件安装程序更新”。安装那个。我认为它应该解决这个问题。
回答by FredericK
I achieved to install it by setting the system date to year 2011. And it worked like a charm!
我通过将系统日期设置为 2011 年来安装它。它的效果非常棒!