Internal Error Occurred While Creating Dependency Graph Xcode
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internal error occurred while creating dependency graph: ASSERTION FAILURE up vote 3 down vote favorite Why do I get this assertion failure? I am using Xcode 3.1.2. 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: Method: -addDependedNode: Thread: {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__
graph Subject: Re: Internal error occurred while creating dependency graph From: Dave McCarthy Date: Thu, 4 Sep 2008 10:37:52 -0400 Delivered-to: email@hidden Delivered-to: email@hidden I have a fairly large project and I get that error a lot. My voodoo to avoid it is to open the project and wait (a few minutes) until Xcode's processor utiliization settles down. If I start a build prematurely, sometimes I get that error or sometimes it wants to recompile my http://stackoverflow.com/questions/2803111/internal-error-occurred-while-creating-dependency-graph-assertion-failure precompiled header but gets "file not found" errors on system framework headers; both require me to close the project and start over. My other voodoo is to never close the project, but lately I've had some kernel panics where Xcode seems to be implicated while the Mac was idle, so I don't have a perfect http://lists.apple.com/archives/xcode-users/2008/Sep/msg00075.html solution. On Sep 4, 2008, at 10:27 AM, Steve Mills wrote: A while back I tried 3.0 or 3.1 and got this error every time I tried to build: Internal error occurred while creating dependency graph: *** - [NSCFArray insertObject:atIndex:]: attempt to insert nil Switching to another config and back to my Debug config would solve the problem. It's still happening in the 3.1.1 beta. We'll be sticking with 2.5 until all the 3.x bugs and slowness have been fixed. So is this a well-known problem and has the Xcode team been scrambling to fix it ever since it first appeared in 2007? Or should I report it again? I mentioned it in radar://5583305. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden Follow-Ups: Re: Internal error occurred while creating dependency graph From: Steve Mills References: >Internal error occurred while creating dependency graph (From:
Wed, 5 May http://lists.apple.com/archives/Xcode-users/2010/May/msg00040.html 2010 16:10:30 -0400 Delivered-to: email@hidden Delivered-to: http://www.cocoabuilder.com/archive/xcode/289379-xcode-3-2-2-configuration-temp-dir-build-setting-makes-build-fail.html email@hidden Hi, I have a new iMac with Core i5 processor and OSX 10.6.3. I try to compile a library with XCode 3.2.2 and I got this internal error error at linking: Internal error occurred while creating dependency graph: ASSERTATION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1648/pbxcore/Target.subproj/PBXTargetBuildContext.m:2061 On my iMac Core 2 Duo the library is compiling perfectly with same version of OSX and XCode. An idea internal error occurred to fix the problem? Thanks! David _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden Prev by Date: Re: Lost *.xcodeproj file... Next by Date: Odd behavior of Active SDK Previous by thread: Re: XCode picks up headers from the wrong location Next by thread: Odd behavior of Active SDK Index(es): Date Thread Home Archives Terms/Conditions Contact RSS Lists About Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Contact Apple|Terms of Use|Privacy Policy Copyright © 2011 Apple Inc. All rights reserved.
as the bug to bugreport.apple.com, but still don't have any reply for more than 2 weeks. The trouble is that if you set CONFIGURATION_TEMP_DIR build setting to relative path value then Build and Clean would fail, 'causing Xcode to report Assertion failure (you can see message in the end of letter). There was no such bug before 3.2.2 Xcode update. Steps to Reproduce: Create New Project of type Command Line Tool. Open build setting of target. Set Per-Configuration Intermediate File Path to "../sdsd" (without quotes). "../sdsd" is just an example - in real project we have path three levels up from Project directory. We need CONFIGURATION_TEMP_DIR to be upper than Project directory - we have such structure of our source directories - Project: src, bin and obj, where xcodeproj and all sources lie in src, but all object-files go to obj, all resulting binaries go to bin. Thus we get all build results outside of sources and binaries won't get to CVS and it's easy to clean manually - kill bin/obj. Did anyone face this problem too? Did you find way out? This is very critical bug for us. Here is what Xcode outputs: Check dependencies Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1648/pbxcore/Target.subproj/PBXTargetBuildContext.m:2061 Details: Assertion failed: [filePath isAbsolutePath] Object: Method: -setHeadermapToolInvocation:forFilePath: Thread: {name = (null), num = 5} Backtrace: 0 0x00000001002b517f -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore) 1 0x0000000100311c1a _XCAssertionFailureHandler (in DevToolsCore) 2 0x00000001002b17d8 -[PBXTargetBuildContext setHeadermapToolInvocation:forFilePath:] (in DevToolsCore) 3 0x0000000100153f23 -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:inTargetBuildContext:] (in DevToolsCore) 4 0x00000001003c9447 -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:withOutputDirectory:additionalProperties:inTargetBuildContext:] (in DevToolsCore) 5 0x0000000100152987 -[XCS