完整断言如下!
我正在尝试使用全新的Sandy Bridge iMac Core i5在全新的XCode 4安装(4.0.2)上打开我们的项目。这个项目在我的旧MacMini和我的合作伙伴的Core 2 Duo iMac上工作并继续工作。
我怀疑这可能是由于这台新机器从未安装过任何旧版本的XCode 4或XCode 3以及旧的SDK。只需4.02,随便随之而来。这是我能想到的唯一......也是我们在机器之间唯一的区别。下面指定的文件确实不存在......因此产生PCH的问题可能是???
有人可以帮忙吗?
我们无法在新机器上打开我们的XCode项目,下面的断言最不友好......
谢谢!
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-287/Framework/Classes/Index/IDEIndex.m:2186
Details: Error launching clang to create PCH file: /Users/sukichima/Library/Developer/Xcode/DerivedData/LeapLanguage-gtjaysymsmxhiifrufylngcjwyxb/Index/PrecompiledHeaders/LeapLanguage_Prefix-bvjcknzwkkcgeydmvtyeuddafzgu_ast/LeapLanguage_Prefix.pch.pth
Error Domain=NSPOSIXErrorDomain Code=2 "The operation couldn’t be completed. No such file or directory"
Object: <IDEIndex: 0x200c257c0>
Method: -createPCHFile:willIndex:arguments:
Thread: <NSThread: 0x2036dfe80>{name = (null), num = 12}
Hints: None
Backtrace:
0 0x0000000100949773 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010006d394 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000100564e3d __46-[IDEIndex createPCHFile:willIndex:arguments:]_block_invoke_0 (in IDEFoundation)
3 0x0000000100005fdc __38-[DVTDispatchLock performLockedBlock:]_block_invoke_0 (in DVTFoundation)
4 0x00007fff88b6d4db dispatch_barrier_sync_f (in libSystem.B.dylib)
5 0x0000000100005f83 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
6 0x0000000100564a34 -[IDEIndex createPCHFile:willIndex:arguments:] (in IDEFoundation)
7 0x0000000100570b4c -[IDEIndexClangDataSource generateDataForFile:settings:] (in IDEFoundation)
8 0x00000001005706c1 -[IDEIndexDataSource processFile:settings:] (in IDEFoundation)
9 0x000000010056ffbe __70-[IDEIndex _indexFile:object:settings:afterOperation:beforeOperation:]_block_invoke_0 (in IDEFoundation)
10 0x00007fff86976cc7 -[__NSOperationInternal start] (in Foundation)
11 0x00007fff86a55af2 __doStart2 (in Foundation)
12 0x00007fff88b74284 _dispatch_call_block_and_release (in libSystem.B.dylib)
13 0x00007fff88b527f1 _dispatch_worker_thread2 (in libSystem.B.dylib)
14 0x00007fff88b52128 _pthread_wqthread (in libSystem.B.dylib)
15 0x00007fff88b51fc5 start_wqthread (in libSystem.B.dylib)
答案 0 :(得分:6)
这个怎么样?
rm -rf /Users/sukichima/Library/Developer/Xcode/DerivedData/*
或者有一个(非常简短的)thread on Cocoa Builder讨论同一个问题。 clang --version
对您的系统有什么影响?
答案 1 :(得分:6)
和我一起上面所有的都没有帮助。 DID帮助最终是从XCode项目包中删除'xcuserdata'。显然,那里有一些腐败的用户依赖设置。
答案 2 :(得分:3)
删除文件~/Library/caches/com.apple.dt.Xcode
为我修复了它。
答案 3 :(得分:0)
问题在于XCode 4首选项下的源路径。如果您看到上述错误,请确保使用细齿梳检查源路径和源路径名称!