I've installed on my MacPro (intel) Xcode 3.2.1 (iPhone SDK 3.1.2) and Snow Leopard
我已经安装在MacPro (intel) Xcode 3.2.1 (iPhone SDK 3.1.2)和Snow Leopard上
I made a new project (called Untitled) for iPhone OS, when I try to build, it returns an error:
我为iPhone OS做了一个新项目(无名),当我尝试构建时,它会返回一个错误:
*file not found:
*/Users/user/Documents/Untitled/build/Untitled.build/Debug-iphonesimulator/Untitled.build/Objects-normal/i386/main.o
*/Users/user/Documents/Untitled/build/Untitled.build/Debug-iphonesimulator/Untitled.build/Objects-normal/i386/UntitledAppDelegate.o*
*Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1*
and doesn't go over!!
不过去! !
what i've to do to fix?
我该怎么做才能修复呢?
thank you for your answers
谢谢你的回答
2 个解决方案
#1
0
"Untitled" is a common place holder so it's possible that the using that as the project name has caused a problem with one of the build scripts. Try another project with a more unique name.
“Untitled”是一个常见的占位符,所以使用它作为项目名可能会对某个构建脚本造成问题。尝试另一个具有更独特名称的项目。
Other possible problems: (1) Permissions problem with the build directories (2) if you messed with the build settings you might have switched off the creation of the executable.
其他可能的问题:(1)构建目录的权限问题(2)如果您打乱了构建设置,您可能已经关闭了可执行文件的创建。
Edit01:
Edit01:
(Response to comment)
(回应评论)
It sounds like you have a nasty corruption problem for some reason. Some things to try.
听起来你有严重的腐败问题是有原因的。一些尝试。
(1) Create a new user and try to run Xcode from that account. That will tell you if the problem is with the developer install or if its some kind of preferences or other file in the user's home directory. Xcode and the other dev apps dynamically create a lot of directories and files that an reinstall will not affect.
(1)创建一个新用户并尝试从该帐户运行Xcode。这将告诉您是开发人员安装的问题,还是用户主目录中的某种首选项或其他文件。Xcode和其他开发应用程序动态创建许多目录和文件,重新安装不会影响这些目录和文件。
(2) You can do a complete uninstall of the developer tools from the command line.
(2)可以从命令行完全卸载开发人员工具。
sudo /Developer/Library/uninstall-devtools --mode=all
sudo /开发/图书馆/ uninstall-devtools——模式=
(3) Xcode is just a face application for a full suit of unix command line development tools. If you installed different versions of these tool e.g. gcc, gdb etc, you might have altered something critical.
(3) Xcode只是一套完整的unix命令行开发工具的表面应用程序。如果您安装了这些工具的不同版本,例如gcc、gdb等,您可能已经改变了一些重要的东西。
(4) Xcode plug-ins can cause problems. Make sure you remove all of them.
(4)Xcode插件会导致问题。一定要把它们都去掉。
I had a crash in Xcode once, and afterwards I could never get Xcode to run under that user account. I spent nearly two days trying to troubleshoot before giving up and moving to another account. That turned out to be a good thing because it allowed me to create an account focused solely on development without all the distractions of my normal account.
我曾经在Xcode中崩溃过一次,之后我再也不能让Xcode在那个用户帐户下运行。我花了将近两天的时间试图解决问题,然后放弃了,转到另一个账户。这是一件好事,因为它让我能够创建一个专注于开发的账户,而不受常规账户的干扰。
#2
0
Doesn't Xcode 3.2 (not 3.1.2) ship with Snow Leopard? If you're using Snow Leopard, you should be using the appropriate version of Xcode for Snow Leopard, which is the 3.2 series.
难道Xcode 3.2(不是3.1.2)不是和雪豹一起出货吗?如果您正在使用雪豹,那么您应该使用适合于雪豹的Xcode版本,即3.2系列。
#1
0
"Untitled" is a common place holder so it's possible that the using that as the project name has caused a problem with one of the build scripts. Try another project with a more unique name.
“Untitled”是一个常见的占位符,所以使用它作为项目名可能会对某个构建脚本造成问题。尝试另一个具有更独特名称的项目。
Other possible problems: (1) Permissions problem with the build directories (2) if you messed with the build settings you might have switched off the creation of the executable.
其他可能的问题:(1)构建目录的权限问题(2)如果您打乱了构建设置,您可能已经关闭了可执行文件的创建。
Edit01:
Edit01:
(Response to comment)
(回应评论)
It sounds like you have a nasty corruption problem for some reason. Some things to try.
听起来你有严重的腐败问题是有原因的。一些尝试。
(1) Create a new user and try to run Xcode from that account. That will tell you if the problem is with the developer install or if its some kind of preferences or other file in the user's home directory. Xcode and the other dev apps dynamically create a lot of directories and files that an reinstall will not affect.
(1)创建一个新用户并尝试从该帐户运行Xcode。这将告诉您是开发人员安装的问题,还是用户主目录中的某种首选项或其他文件。Xcode和其他开发应用程序动态创建许多目录和文件,重新安装不会影响这些目录和文件。
(2) You can do a complete uninstall of the developer tools from the command line.
(2)可以从命令行完全卸载开发人员工具。
sudo /Developer/Library/uninstall-devtools --mode=all
sudo /开发/图书馆/ uninstall-devtools——模式=
(3) Xcode is just a face application for a full suit of unix command line development tools. If you installed different versions of these tool e.g. gcc, gdb etc, you might have altered something critical.
(3) Xcode只是一套完整的unix命令行开发工具的表面应用程序。如果您安装了这些工具的不同版本,例如gcc、gdb等,您可能已经改变了一些重要的东西。
(4) Xcode plug-ins can cause problems. Make sure you remove all of them.
(4)Xcode插件会导致问题。一定要把它们都去掉。
I had a crash in Xcode once, and afterwards I could never get Xcode to run under that user account. I spent nearly two days trying to troubleshoot before giving up and moving to another account. That turned out to be a good thing because it allowed me to create an account focused solely on development without all the distractions of my normal account.
我曾经在Xcode中崩溃过一次,之后我再也不能让Xcode在那个用户帐户下运行。我花了将近两天的时间试图解决问题,然后放弃了,转到另一个账户。这是一件好事,因为它让我能够创建一个专注于开发的账户,而不受常规账户的干扰。
#2
0
Doesn't Xcode 3.2 (not 3.1.2) ship with Snow Leopard? If you're using Snow Leopard, you should be using the appropriate version of Xcode for Snow Leopard, which is the 3.2 series.
难道Xcode 3.2(不是3.1.2)不是和雪豹一起出货吗?如果您正在使用雪豹,那么您应该使用适合于雪豹的Xcode版本,即3.2系列。