Xcode Exit Code 5 ?!?!?!?!?!?!?!

I downloaded all base sdk's from 2.2.1- 4.2. xcode kept deleting them somehow so i went back and reinstalled all of them. being so happy, i go to build gsviewer for my iphone 4.1 and it says this:
File: /SourceCache/DevToolsBase/DevToolsBase-1763/pbxcore/Target.subproj/PBXTarget.m
Line: 1603
Object: <PBXNativeTarget:0x200c46a00>
Method: createPropertyExpansionContextWithBuildState:
Platform failed to completely load. Examine Console Log for error messages.
Can anybody help me!!!!!!?!?!?!?! I can build it and test it on the simulators no errors, but not to the device directly!!!!!!! help please!!!!!!
File: /SourceCache/DevToolsBase/DevToolsBase-1763/pbxcore/Target.subproj/PBXTarget.m
Line: 1603
Object: <PBXNativeTarget:0x200c46a00>
Method: createPropertyExpansionContextWithBuildState:
Platform failed to completely load. Examine Console Log for error messages.
Can anybody help me!!!!!!?!?!?!?! I can build it and test it on the simulators no errors, but not to the device directly!!!!!!! help please!!!!!!