[英]Error when trying to build anything after installing Xcode 3.2.3
I just recently installed the latest verson of Xcode as well as the ios 4.0.2 sdk with the disk image downloaded off of the apple developer site named xcode_3.2.3_andios_4.0.2.dmg. 我最近刚刚安装了最新版的Xcode以及ios 4.0.2 sdk,并从苹果开发人员站点xcode_3.2.3_andios_4.0.2.dmg上下载了磁盘映像。 My past version of xcode came off of the snow leopard install disk.
我以前的xcode版本来自雪豹安装磁盘。 After the install I get an error when I try to build anything including a new project that states :
安装后,当我尝试构建包含以下内容的新项目时出现错误:
error: can't exec '/Developer/usr/bin/gcc-4.2' (No such file or directory) 错误:无法执行'/Developer/usr/bin/gcc-4.2'(无此文件或目录)
Does anybody have any ideas as to what went wrong and how I can get Xcode working again? 是否有人对哪里出了问题以及如何使Xcode重新工作有任何想法?
You're missing the UNIX development files and programs that should be installed when you install Xcode? 您缺少安装Xcode时应安装的UNIX开发文件和程序吗? Re-run the Xcode installer and make sure they are selected.
重新运行Xcode安装程序,并确保已选择它们。
If you find the "Installation" section in the "About Xcode and iPhone SDK" PDF (in the disk image, along side the installer package itself) you'll see reference to the files you're missing: 如果在“关于Xcode和iPhone SDK” PDF中找到“安装”部分(在磁盘映像中,安装程序包本身旁边),您将看到对丢失文件的引用:
UNIX Development.
UNIX开发。 Command-line tools used for UNIX-based development.
用于基于UNIX的开发的命令行工具。 Its components are always placed in /usr - only one version installed at a time.
它的组件始终放在/ usr中-一次仅安装一个版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.