2011-07-14 72 views
1

任何想法爲什麼我的構建在以下過程中失敗?我在這個項目中還有2個其他目標可以構建得很好。基於這個問題,我看不出任何明確的理由。我已經比較了每個目標中的所有構建設置,並且全部似乎都一樣。Xcode 4 gcc-4.2失敗,退出代碼爲1

任何幫助表示讚賞。

 
ProcessPCH /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/PrecompiledHeaders/MyApp_Prefix-bknmhqekgexlchfcpbduwcqlcafa/MyApp_Prefix.pch.gch MyApp_Prefix.pch normal armv7 objective-c com.apple.compilers.gcc.4_2 
    cd /Users/me/Development/myapp/trunk 
    setenv LANG en_US.US-ASCII 
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch armv7 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wmissing-prototypes -Wreturn-type -Wunused-variable -DDEBUG_LOGS_ON -DMyApp -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -gdwarf-2 -fvisibility=hidden -mthumb -miphoneos-version-min=4.2 -iquote "/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/MyApp-generated-files.hmap" "-I/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/MyApp-own-target-headers.hmap" "-I/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/MyApp-all-target-headers.hmap" -iquote "/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/MyApp-project-headers.hmap" -I/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Products/Debug-iphoneos/include -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/libxml2 -I/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/DerivedSources/armv7 -I/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/DerivedSources -F/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/Products/Debug-iphoneos -c /Users/me/Development/myapp/trunk/MyApp_Prefix.pch -o /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gphlhvxbcddmbydldqumpamkmmwu/Build/PrecompiledHeaders/MyApp_Prefix-bknmhqekgexlchfcpbduwcqlcafa/MyApp_Prefix.pch.gch 

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 

回答

2

好吧,算出來。我爲這個目標提供了一個預處理器宏,它以一個數字開頭,例如「123TEST」,顯然編譯器首先不喜歡數字,「TEST123」工作正常。

+0

U救了我的日子:-)這些錯誤是用Marsian lng寫的。 – Cyprian

0

你需要看看MyApp_Prefix.pch。編譯器不喜歡它。

+0

相同的pch文件用於編譯好的其他2個目標。 –

相關問題