无法让Xcode应用程序编译

时间:2012-01-17 16:31:43

标签: ios xcode ios5 app-store xcodebuild

我在构建应用时遇到以下错误

我一次又一次地收到同样的消息。不知道现在该做什么。

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
)

1 个答案:

答案 0 :(得分:0)

由于某种原因,文件丢失了。我从AppStore重新安装了Xcode,它又开始工作了。

我不知道文件是如何丢失的。