2012-01-17 301 views
0

我在構建我的應用程序時出現以下錯誤:無法讓Xcode應用程序編譯

我一直收到相同的消息。不知道現在該做什麼。

Check dependencies 
Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-931/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Target.subproj/XCCodeSignContext.m:1237 
Details: Error: failed to locate ResourceRules.plist in '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/ResourceRules.plist' or '/Developer/Platforms/iPhoneOS.platform/ResourceRules.plist' 
Object: <XCiPhoneOSCodeSignContext> 
Method: +defineCodeSignAuxiliaryFilesInTargetBuildContext: 
Thread: <NSThread: 0x403d5dfc0>{name = (null), num = 15} 
Backtrace: 
    0 0x00000001137a39ac -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore) 
    1 0x000000010f6546a4 _DVTAssertionFailureHandler (in DVTFoundation) 
    2 0x000000011387c80a +[XCCodeSignContext defineCodeSignAuxiliaryFilesInTargetBuildContext:] (in DevToolsCore) 
    3 0x00000001137f4c10 -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
    4 0x0000000113884a42 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
    5 0x000000011379326d -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore) 
    6 0x00000001137a4a2e -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore) 
    7 0x00007fff9700120c __invoking___ (in CoreFoundation) 
    8 0x00007fff970010a4 -[NSInvocation invoke] (in CoreFoundation) 
    9 0x00000001137a3df1 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore) 
10 0x00007fff9700120c __invoking___ (in CoreFoundation) 
11 0x00007fff970010a4 -[NSInvocation invoke] (in CoreFoundation) 
12 0x00000001137ed296 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore) 
13 0x00000001137ed6a0 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore) 
14 0x00007fff919f37fe -[NSThread main] (in Foundation) 
15 0x00007fff919f3776 __NSThread__main__ (in Foundation) 
16 0x00007fff965958bf _pthread_start (in libsystem_c.dylib) 
17 0x00007fff96598b75 thread_start (in libsystem_c.dylib) 

(null) 
(
    0 CoreFoundation      0x00007fff9700f286 __exceptionPreprocess + 198 
    1 libobjc.A.dylib      0x00007fff8de79d5e objc_exception_throw + 43 
    2 CoreFoundation      0x00007fff970994c9 -[NSException raise] + 9 
    3 DVTFoundation      0x000000010f6546a4 _DVTAssertionFailureHandler + 110 
    4 DevToolsCore      0x000000011387c80a +[XCCodeSignContext defineCodeSignAuxiliaryFilesInTargetBuildContext:] + 2120 
    5 DevToolsCore      0x00000001137f4c10 -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] + 656 
    6 DevToolsCore      0x0000000113884a42 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] + 3744 
    7 DevToolsCore      0x000000011379326d -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] + 4889 
    8 DevToolsCore      0x00000001137a4a2e -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] + 460 
    9 CoreFoundation      0x00007fff9700120c __invoking___ + 140 
    10 CoreFoundation      0x00007fff970010a4 -[NSInvocation invoke] + 132 
    11 DevToolsCore      0x00000001137a3df1 -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] + 594 
    12 CoreFoundation      0x00007fff9700120c __invoking___ + 140 
    13 CoreFoundation      0x00007fff970010a4 -[NSInvocation invoke] + 132 
    14 DevToolsCore      0x00000001137ed296 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] + 388 
    15 DevToolsCore      0x00000001137ed6a0 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] + 510 
    16 Foundation       0x00007fff919f37fe -[NSThread main] + 68 
    17 Foundation       0x00007fff919f3776 __NSThread__main__ + 1575 
    18 libsystem_c.dylib     0x00007fff965958bf _pthread_start + 335 
    19 libsystem_c.dylib     0x00007fff96598b75 thread_start + 13 
) 
+0

是名爲「ResourceRules」的應用程序嗎? – 2012-01-17 17:12:14

+0

別傻了。 ResourceRules是iOS/Mac OS X應用程序的證書文件... – 2012-01-17 17:14:30

+0

那麼,plist在哪裏走?你的任何項目是否構建? – 2012-01-17 17:36:31

回答

0

由於某些原因,文件丟失。我從AppStore重新安裝Xcode並重新開始工作。

我不知道文件如何丟失。