简体   繁体   English

gcc-4.2失败,在Xcode中退出代码为1

[英]gcc-4.2 failed with exit code 1 in Xcode

I'm working with Xcode 3.2.3 and iOS 4.0.1 and I have downloaded an open source iPhone game to learn from but without editing anything I tried to run it in the simulator and it throws this error message: 我正在使用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 normal i386 objective-c com.apple.compilers.gcc.4_2 cd "/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-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/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-generated-files.hmap" "-I/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3 catchcat_Prefix.pch正常的i386 Objective-c com.apple.compilers.gcc.4_2 cd“ / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-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客观c头-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 /开发人员/平台/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk -fvisibility =隐藏-mmacosx-version-min = 10.5 -gdwarf-2 -fobjc-abi-version = 2 -fobjc-legacy-dispatch -iquote“ / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / catchcat.build / Debug-iphonesimulator / catchcat.build / catchcat-generation-files.hmap”“ -I / Users / ryanpoolos /桌面/开源iPhone / lifengtian-catchcat-f3 d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-own-target-headers.hmap" "-I/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-all-target-headers.hmap" -iquote "/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/catchcat-project-headers.hmap" "-F/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/Debug-iphonesimulator" "-I/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/Debug-iphonesimulator/include" "-I/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/DerivedSources/i386" "-I/Users/ryanpoolos/Desktop/Open Source iPhone/lifengtian-catchcat-f3d5f20/build/catchcat.build/Debug-iphonesimulator/catchcat.build/DerivedSources" -c "/Users/ryanpoolos/Desktop/Open Sourc d5f20 / build / catchcat.build / Debug-iphonesimulator / catchcat.build / catchcat-own-target-headers.hmap“” -I / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / catchcat。 build / Debug-iphonesimulator / catchcat.build / catchcat-all-target-headers.hmap“ -iquote” / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / catchcat.build / Debug-iphonesimulator / catchcat.build/catchcat-project-headers.hmap“” -F / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / Debug-iphonesimulator“” -I / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / Debug-iphonesimulator / include“” -I / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / catchcat.build / Debug-iphonesimulator / catchcat.build / DerivedSources / i386“” -I / Users / ryanpoolos / Desktop / Open Source iPhone / lifengtian-catchcat-f3d5f20 / build / catchcat.build / Debug-iphonesimulator / catchcat.build / DerivedSources“ -c” / Users / ryanpoolos / Desktop /开放源代码 e 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 e iPhone / lifengtian-catchcat-f3d5f20 / catchcat_Prefix.pch“ -o /var/folders/-r/-r6hd0CEEASnoGYBU9KSlk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/catchcat_Prefix-crjsognppqgdgfdio ch

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

iPhone/lifengtian-catchcat-f3d5f20/catchcat_Prefix.pch: No such file or directory i686-apple-darwin10-gcc-4.2.1: warning: '-x objective-c-header' after last input file has no effect i686-apple-darwin10-gcc-4.2.1: no input files Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 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

Help me out anyone? 帮帮我吗?

Sounds like something somewhere isn't properly quoting the spaces in your path. 听起来好像某处未正确引用路径中的空格。 Try renaming OPen Source iPhone to OpenSourceIPhone or something. 尝试将OPen Source iPhone重命名为OpenSourceIPhone或其他名称。

Silly, I know, but occasionally the unixisms creep through. 我知道这很愚蠢,但偶尔会出现unixism。

This can happen if you have an empty line in any of configuration lists of the project. 如果项目的任何配置列表中都有空行,则可能会发生这种情况。 For example in user defines or include paths. 例如,在用户中定义或包含路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GCC-4.2退出代码1-Xcode失败 - GCC-4.2 Failed with Exit Code 1 - Xcode Xcode:gcc-4.2失败,退出代码为1 - Xcode: gcc-4.2 failed with exit code 1 gcc-4.2失败,退出代码为1 iPhone - gcc-4.2 failed with exit code 1 iphone gcc-4.2失败,退出代码为1错误 - gcc-4.2 failed with exit code 1 Error gcc-4.2失败,退出代码为1 iphone - gcc-4.2 failed with exit code 1 iphone Apple Push通知问题gcc-4.2失败,退出代码为1 - Apple Push notification Problem gcc-4.2 failed with exit code 1 GCC-4.2失败,错误代码为1 - GCC-4.2 Failed With Error Code 1 Box2D xcode 项目编译器错误“Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1” - Box2D xcode project compiler errors “Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1” 找不到库-命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1 - library not found - Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 为什么我会收到此错误:“Command / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin / gcc-4.2使用退出代码1失败”? - Why do i get this error: “Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM