首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >创建依赖关系图时发生内部错误:断言失败

创建依赖关系图时发生内部错误:断言失败
EN

Stack Overflow用户
提问于 2018-05-31 23:32:39
回答 2查看 0关注 0票数 0

为什么我会有这种断言失败?我使用的是Xcode 3.1.2。

代码语言:txt
复制
Checking Dependencies
Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1204/pbxcore/NativeBuildSystem/XCDependencyNode.m:396
Details:  command should be an instance inheriting from XCDependencyCommand, but it is nil
Object:   <XCDependencyNode:0x03379d50>
Method:   -addDependedNode:
Thread:   <NSThread: 0x2c1e760>{name = (null), num = 4}
Backtrace:
  0  0x00725da2 -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
  1  0x0078a360 _XCAssertionFailureHandler (in DevToolsCore)
  2  0x005e1f66 -[XCDependencyNode addDependedNode:] (in DevToolsCore)
  3  0x005e5c4c -[XCResourcesBuildPhaseDGSnapshot copyResourceFile:ofType:toDirectory:inTargetBuildContext:] (in DevToolsCore)
  4  0x005e55d6 -[XCResourcesBuildPhaseDGSnapshot computeDependenciesForBuildFileReference:inTargetBuildContext:] (in DevToolsCore)
  5  0x005e34b4 -[XCBuildPhaseDGSnapshot computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore)
  6  0x005e2b13 -[XCBuildPhaseDGSnapshot computeDependenciesInTargetBuildContext:] (in DevToolsCore)
  7  0x005e4ebb -[XCResourcesBuildPhaseDGSnapshot computeDependenciesInTargetBuildContext:] (in DevToolsCore)
  8  0x005d8ebe -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore)
  9  0x005d4866 -[XCNativeTargetDGSnapshot computeDependenciesInTargetBuildContext:] (in DevToolsCore)
 10  0x005d1efd -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
 11  0x005d10c5 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
 12  0x936199dd __invoking___ (in CoreFoundation)
 13  0x936193c8 -[NSInvocation invoke] (in CoreFoundation)
 14  0x005d0aeb -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
 15  0x936199dd __invoking___ (in CoreFoundation)
 16  0x936193c8 -[NSInvocation invoke] (in CoreFoundation)
 17  0x005d0458 -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore)
 18  0x005d0107 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore)
 19  0x91a11e0d -[NSThread main] (in Foundation)
 20  0x91a119b4 __NSThread__main__ (in Foundation)
 21  0x9757d155 _pthread_start (in libSystem.B.dylib)
 22  0x9757d012 thread_start (in libSystem.B.dylib)
EN

回答 2

Stack Overflow用户

发布于 2018-06-01 07:43:10

我也遇到了这个问题,发现我的问题与以下配置设置有关:

代码语言:txt
复制
CONFIGURATION_BUILD_DIR = $(BUILD_DIR)/release/bin
CONFIGURATION_TEMP_DIR  = build/$(CONFIGURATION_BUILD_DIR)

我删除了设置,就像测试一样,Xcode产生的错误消失了。

票数 0
EN

Stack Overflow用户

发布于 2018-06-01 08:37:26

这看起来像是XCode试图构建应用程序的失败。

从跟踪中的方法名称判断,它正在查看依赖关系,试图确定要构建什么。你可以通过“清除所有目标”并再次尝试来解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100000200

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档