objective-c – 处理预编译的头文件给出了我不明白的错误

我正在OS X Lion上使用Xcode 4.1和Pixelwave构建iOS 4.2游戏.

在开发过程中的某个时刻,我做了一个Clean of the project,自从我无法编译项目以来,因为我在处理PCH时遇到了大量的错误.这是调用和报告的前几个错误:

ProcessPCH /Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/PrecompiledHeaders/SpaceLanes-Prefix-gsthuuctbvtocahgjvzncaegrttc/SpaceLanes-Prefix.pch.gch SpaceLanes/SpaceLanes-Prefix.pch normal armv7 objective-c com.apple.compilers.llvmgcc42
    cd /Users/andy/dev/spacelanes/src
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/andy/bin:/Users/andy/homebrew/bin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -x objective-c-header -arch armv7 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wmissing-prototypes -Wreturn-type -Wunused-variable -DDEBUG=1 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -gdwarf-2 -mthumb -miphoneos-version-min=4.2 -I/Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/Intermediates/SpaceLanes.build/Debug-iphoneos/SpaceLanes.build/SpaceLanes.hmap -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Common -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Core -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Display -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Events -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Geom -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Loaders -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Media -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Text -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Utils -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/libpng -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TouchJSON -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TRE -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/zlib -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Core/Audio -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Core/Visual -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Media/Channels -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Media/Sounds -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Modifiers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Utils -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Text/FontOptions -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Text/Fonts -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Text/Renderers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/Exceptions -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Utils/Modifiers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Utils/Regex -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Utils/TextureAtlas -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/include -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TouchJSON/Source -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TRE/lib -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Modifiers/SoundModifiers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Modifiers/TextureModifiers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/FontParser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/ParsedData -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/SoundParser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/TextureAtlasParser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/TextureParser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/include/freetype -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/base -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/cff -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/pshinter -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/psnames -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/raster -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/sfnt -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/smooth -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/src/truetype -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TouchJSON/Source/Experimental -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TouchJSON/Source/Extensions -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/TouchJSON/Source/JSON -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/FontParser/FontFuser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/FontParser/FontParsers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/SoundParser/SoundParsers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/TextureAtlasParser/TextureAtlasParsers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/TextureParser/TextureParsers -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/include/freetype/config -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/include/freetype/internal -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/FontParser/FontFuser/TextureFontFuser -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/ExternalFrameworks/FreeType/include/freetype/internal/services -I/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Parsers/FontParser/FontFuser/TextureFontFuser/TextureFontFusers -I/Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/Products/Debug-iphoneos/include -I/Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/Intermediates/SpaceLanes.build/Debug-iphoneos/SpaceLanes.build/DerivedSources/armv7 -I/Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/Intermediates/SpaceLanes.build/Debug-iphoneos/SpaceLanes.build/DerivedSources -F/Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/Products/Debug-iphoneos -c /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch -o /Users/andy/Library/Developer/Xcode/DerivedData/SpaceLanes-hfosxrptdqurkjagubffvwqautju/Build/PrecompiledHeaders/SpaceLanes-Prefix-gsthuuctbvtocahgjvzncaegrttc/SpaceLanes-Prefix.pch.gch

In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:74,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Common/PXSettings.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/PXTopLevel.h:44,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:77,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/Exceptions/PXException.h:41: error: cannot find interface declaration for 'NSException', superclass of 'PXException'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/Exceptions/PXException.h:45: error: expected ')' before 'NSString'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/Exceptions/PXException.h:47: error: expected ')' before 'NSString'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/Exceptions/PXException.h:47: error: expected ')' before 'NSDictionary'
In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures/PXLinkedList.h:40,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/PXTopLevel.h:51,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:77,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures/PXPooledObject.h:50: error: cannot find protocol declaration for 'NSObject'
In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/PXTopLevel.h:52,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:77,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures/PXObjectPool.h:47: error: cannot find protocol declaration for 'NSObject'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures/PXObjectPool.h:59: error: cannot find interface declaration for 'NSObject', superclass of 'PXObjectPool'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/DataStructures/PXObjectPool.h:63: error: expected specifier-qualifier-list before 'NSMutableDictionary'
In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:78,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/TopLevel/PXMath.h:43: error: cannot find interface declaration for 'NSObject', superclass of 'PXMath'
In file included from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:81,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:72: error: cannot find interface declaration for 'UIView', superclass of 'PXView'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:72: error: cannot find protocol declaration for 'NSCoding'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:80: error: expected specifier-qualifier-list before 'CGSize'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:84: error: expected specifier-qualifier-list before 'BOOL'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:85: error: expected specifier-qualifier-list before 'BOOL'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:86: error: expected specifier-qualifier-list before 'BOOL'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:87: error: expected specifier-qualifier-list before 'BOOL'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:112: error: expected ')' before 'CGRect'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:114: error: expected ')' before 'CGRect'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:119: error: expected ')' before 'CGRect'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:123: error: expected ')' before 'UIImage'
/Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Cocoa/PXView.h:129: error: expected ')' before 'BOOL'
In file included from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:9,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Support/Utils/PXGLUtils.h:51,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Core/Visual/PXGL.h:47,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Classes/Display/PXDisplayObject.h:41,
                 from /Users/andy/dev/pixelwave/head/Pixelwave/Pixelwave/Include/Pixelwave.h:84,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/Game/Block.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
                 from /Users/andy/dev/spacelanes/src/SpaceLanes/SpaceLanes-Prefix.pch:12:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:92: error: expected ')' before 'allocator'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:93: error: expected declaration specifiers or '...' before '*' token
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:93: error: 'CFStringRef' declared as function returning a function
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:94: error: expected declaration specifiers or '...' before '*' token
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:94: error: 'Boolean' declared as function returning a function
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:95: error: expected declaration specifiers or '...' before '*' token
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:95: error: 'CFHashCode' declared as function returning a function
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:97: error: expected specifier-qualifier-list before 'CFIndex'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:149: error: expected specifier-qualifier-list before 'CFIndex'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFTypeID'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:278: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFDictionaryRef'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:302: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFDictionaryRef'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:374: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFMutableDictionaryRef'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:407: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFMutableDictionaryRef'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:417: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFIndex'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:436: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFIndex'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:452: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CFIndex'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:470: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Boolean'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:486: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Boolean'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:508: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:533: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Boolean'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:556: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:576: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:596: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:619: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:638: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:652: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:662: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

据我所知,构建设置中没有任何改变会引发这种情况.

以下是我尝试调试时尝试过但未成功的事情:

>恢复到先前已编译好的项目的先前提交.
>查看Pixelwave的全新副本.
>恢复到我之前编译好的项目的第一次提交.
>删除项目的DerivedData子目录.
>重新启动Xcode.
>重新启动.
>卸载并重新安装开发工具(我变得绝望).

这些都没有帮助 – 每次我仍然遇到相同的错误.关于造成这种行为的原因,我的斗智斗勇.我甚至不知道从哪里开始寻找.

最佳答案
根据另一个用户的建议,我将所有源文件复制到一个新项目中,然后进行构建.对两个项目文件进行差异,然后发现极少数有意义的差异之一是ALWAYS_SEARCH_USER_PATHS,在不能构建的项目中设置为YES.

将ALWAYS_SEARCH_USER_PATHS设置回默认值NO修复了问题.

转载注明原文:objective-c – 处理预编译的头文件给出了我不明白的错误 - 代码日志