【问题标题】:gcc-4.2 failed with exit code 1 in Xcodegcc-4.2 在 Xcode 中以退出代码 1 失败
【发布时间】:2010-07-19 22:22:22
【问题描述】:

我正在使用 Xcode 3.2.3 和 iOS 4.0.1,我下载了一个开源的 iPhone 游戏来学习,但没有编辑任何东西,我试图在模拟器中运行它,它会抛出以下错误消息:

    ProcessPCH /var/folders/-r/-r6hd0CEEASnoGYBU9KSlk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/catchcat_Prefix-crjsognppahnfgdfvinmsqvdioie/catchcat_Prefix.pch.gch

catchcat_Prefix.pch 正常 i386 目标-c com.apple.compilers.gcc.4_2 cd "/Users/ryanpoolos/Desktop/开源 iPhone/立丰天-catchcat-f3d5f20" setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote "/Users/ryanpoolos/Desktop/开源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-generated-files.hmap" “-I/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-own-target-headers.hmap" “-I/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-all-target-headers.hmap" -iquote "/Users/ryanpoolos/Desktop/开源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-project-headers.hmap" "-F/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/Debug-iphonesimulator" “-I/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/Debug-iphonesimulator/include" “-I/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/DerivedSources/i386" “-I/用户/ryanpoolos/桌面/打开 来源 iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/DerivedSources" -c "/用户/ryanpoolos/桌面/开源 iPhone/lifengtian-catchcat-f3d5f20/catchcat_Prefix.pch" -o /var/folders/-r/-r6hd0CEEASnoGYBU9KSlk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/catchcat_Prefix-crjsognppahnfgdfvinmsqvdioie/catchcat_Prefix.pch .gch

i686-apple-darwin10-gcc-4.2.1: /Users/ryanpoolos/Desktop/Open Source

iPhone/lifengtian-catchcat-f3d5f20/catchcat_Prefix.pch: 没有那个文件或目录 i686-apple-darwin10-gcc-4.2.1:警告:'-x objective-c-header'之后 最后输入文件无效 i686-apple-darwin10-gcc-4.2.1:没有输入文件 命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 退出代码 1 失败

有人帮帮我吗?

【问题讨论】:

    标签: iphone xcode sdk build xcode3.2


    【解决方案1】:

    听起来好像某处没有正确引用路径中的空格。尝试将OPen Source iPhone 重命名为OpenSourceIPhone 或其他名称。

    我知道这很愚蠢,但有时unixisms会蔓延开来。

    【讨论】:

      【解决方案2】:

      如果您在项目的任何配置列表中有一个空行,就会发生这种情况。例如在用户定义或包含路径中。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-12-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-12-11
        • 2016-01-28
        相关资源
        最近更新 更多