简体   繁体   English

在安装Xcode 3.2.3之后尝试构建任何东西时出错

[英]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.

相关问题 安装新的xcode 3.2.3 build之后的未定义符号 - Undefined symbols after installing new xcode 3.2.3 build 如何让Xcode 3.2.3构建一个特定的架构? - How to make Xcode 3.2.3 build a specfic architecture? 使用Xcode 3.2.3构建适用于10.5的应用程序时遇到的问题 - Problems to build app for 10.5 with xcode 3.2.3 尝试在模拟器或设备上构建React Native项目时出现Xcode错误 - Xcode Error when trying to build a React Native project on simulator or device 尝试构建XCode项目以进行发布时出现Typedef重新定义错误 - Typedef redefinition error when trying to build XCode project for release 尝试运行并构建到 iPhone 模拟器中时出现 Flutter Xcode 致命错误 - Flutter Xcode fatal error when trying to run and build into an iPhone emulator 尝试构建我的xcode项目时出现GTMSessionFetcherService链接器错误 - GTMSessionFetcherService linker error when trying to build my xcode project 升级到XCode 3.2.3后,重新定义错误 - Errors with redefinitions after upgrade to XCode 3.2.3 切换到xcode 3.2.3和模拟器4.0时的问题 - Problems when switching to xcode 3.2.3 and simulator 4.0 构建成功后,将文本文件安装/导入到物理设备时,Xcode崩溃(RangeException) - Xcode crashes when installing/importing text files to physical device after build succeeds (RangeException)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM