2010-09-09 203 views
1

我已經將我的iphone sdk從3.1.3升級到3.2.3。但是現在我有一個問題。我正在開發的這個項目並沒有在新的SDK中編譯。我更改了目標信息設置,也就是base sdk設置爲iphone設備4.0。我有follwing生成錯誤:編譯失敗的xcode 3.2.3

Internal error occurred while creating dependency graph: ASSERTION FAILURE in   /SourceCache/DevToolsBase/DevToolsBase-  1691/pbxcore/Target.subproj/PBXTargetBuildContext.m:2061 
Details: Assertion failed: [filePath isAbsolutePath] 
Object: <PBXTargetBuildContext:0x201779de0> 
Method: -setHeadermapToolInvocation:forFilePath: 
Thread: <NSThread: 0x20091e040>{name = (null), num = 5} 
Backtrace: 
0 0x00000001002857d8 -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore) 
1 0x00000001002dab3f _XCAssertionFailureHandler (in DevToolsCore) 
2 0x0000000100282342 -[PBXTargetBuildContext setHeadermapToolInvocation:forFilePath:] (in DevToolsCore) 
3 0x0000000100141a6b -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:inTargetBuildContext:] (in DevToolsCore) 
4 0x0000000100381aa5 -[XCBuildRuleDGSnapshot(DependencyGraphCreation) computeDependenciesForFilePath:ofType:forBuildFileReference:withOutputDirectory:additionalProperties:inTargetBuildContext:] (in DevToolsCore) 
5 0x000000010015b3cd -[XCResourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForBuildFileReference:inTargetBuildContext:] (in DevToolsCore) 
6 0x000000010013d4a8 -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesForAllBuildFileReferencesInTargetBuildContext:] (in DevToolsCore) 
7 0x000000010015b0e3 -[XCBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
8 0x000000010015b031 -[XCResourcesBuildPhaseDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
9 0x000000010012d1eb -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
10 0x0000000100128a19 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore) 
11 0x0000000100124ba5 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore) 
12 0x0000000100123b62 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore) 
13 0x00007fff83eed0dc __invoking___ (in CoreFoundation) 
14 0x00007fff83eecfad -[NSInvocation invoke] (in CoreFoundation) 
15 0x000000010a -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore) 
16 0x00007fff83eed0dc __invoking___ (in CoreFoundation) 
17 0x00007fff83eecfad -[NSInvocation invoke] (in CoreFoundation) 
18 0x000000010b -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore) 
19 0x0000000100122e0d -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore) 
20 0x00007fff829f9e99 __NSThread__main__ (in Foundation) 
21 0x00007fff8845ff8e _pthread_start (in libSystem.B.dylib) 
22 0x00007fff8845fe41 thread_start (in libSystem.B.dylib) 

我已刪除生成文件夾,並試圖清理所有目標,但它不起作用。

+0

嘿。我知道這已經有一段時間了,但是你還記得你是如何解決這個問題的?我遇到了與XCode 4.3相同的問題。 – 2012-02-20 21:23:18

回答

0

您正在嘗試構建iPad應用程序還是iPhone應用程序? 據我所知3.2.x是iPad的。 此外,你是否試圖在設備上或模擬器上運行它?如果您正在模擬器上運行,請確保它在項目設置中正確設置。

+0

我正在構建iPhone應用程序。它既不用於設備也不用於模擬器。我檢查了幾乎所有的項目設置。 – Jack 2010-09-09 11:14:01

+0

將基礎SDK設置爲3.1.3而不是3.2。如果您正在構建iPhone而不是iPad應用程序,則無需使用3.2.x版本。 – Noam 2010-09-09 13:25:13