Xcode 3.2.2 拒绝打开任何项目文件夹?
我正在许多不同的机器上进行开发,并且已经有一段时间没有使用我的笔记本电脑了。今天,几个月后我第一次尝试使用,却发现 Xcode 坚决拒绝打开任何 .xcodeproj 项目!?
我最终卸载了旧的(我认为是 3.1)Xcode 安装并从头开始重新安装最新的 SDK,但即使在新创建的项目上(例如新项目..崩溃)我仍然遇到相同的错误:
2/22/10 5:37:37 PM Xcode[209] [?T] File: /SourceCache/DevToolsBase/DevToolsBase-1641/pbxcore/PBXProject.m
Line: 2630
Object: <PBXProject:0x2009c42a0>
Method: expandedValueForString:forConfigurationNamed:
Assertion failed: [NSThread isMainThread]
Backtrace:
0 0x0000000100a3b6af -[PBXAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsInterface)
1 0x00000001003110fa _XCAssertionFailureHandler (in DevToolsCore)
2 0x000000010010be48 -[PBXProject expandedValueForString:forConfigurationNamed:] (in DevToolsCore)
3 0x00000001001123df -[PBXProject intermediatesDirectoryForConfigurationNamed:] (in DevToolsCore)
4 0x00000001001123a3 -[PBXProject intermediatesDirectory] (in DevToolsCore)
5 0x00000001001122a5 -[PBXProject indexDirectory] (in DevToolsCore)
6 0x0000000100112134 +[PBXProjectIndex indexArchivePathForProject:] (in DevToolsCore)
7 0x000000010011202b -[PBXProjectIndex indexArchivePath] (in DevToolsCore)
8 0x000000010024b18a __-[PBXProjectIndex initWithProject:]_block_invoke_ (in DevToolsCore)
9 0x00007fff87164056 _dispatch_barrier_sync_f_slow_invoke (in libSystem.B.dylib)
10 0x00007fff87142943 _dispatch_queue_drain (in libSystem.B.dylib)
11 0x00007fff871427a4 _dispatch_queue_invoke (in libSystem.B.dylib)
12 0x00007fff8714234e _dispatch_worker_thread2 (in libSystem.B.dylib)
13 0x00007fff87141c80 _pthread_wqthread (in libSystem.B.dylib)
14 0x00007fff87141b1d start_wqthread (in libSystem.B.dylib)
还有其他人来吗跨越这个问题? ~/Library/Caches/xcodebuild 之外还有需要清理的缓存吗?
任何帮助将非常感激。
最好的问候,
弗兰克
I'm developing on a number of different machines and haven't used my laptop for a while. Today I tried to use for the first time after a couple of months only to find that Xcode steadfastedly refuses to open any .xcodeproj projects!?
I ended up uninstalling the older (I think it was 3.1) Xcode installation and re-installing the latest SDK from scratch, but I keep getting the same error even on newly created projects (e.g. New Project.. crash):
2/22/10 5:37:37 PM Xcode[209] [?T] File: /SourceCache/DevToolsBase/DevToolsBase-1641/pbxcore/PBXProject.m
Line: 2630
Object: <PBXProject:0x2009c42a0>
Method: expandedValueForString:forConfigurationNamed:
Assertion failed: [NSThread isMainThread]
Backtrace:
0 0x0000000100a3b6af -[PBXAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsInterface)
1 0x00000001003110fa _XCAssertionFailureHandler (in DevToolsCore)
2 0x000000010010be48 -[PBXProject expandedValueForString:forConfigurationNamed:] (in DevToolsCore)
3 0x00000001001123df -[PBXProject intermediatesDirectoryForConfigurationNamed:] (in DevToolsCore)
4 0x00000001001123a3 -[PBXProject intermediatesDirectory] (in DevToolsCore)
5 0x00000001001122a5 -[PBXProject indexDirectory] (in DevToolsCore)
6 0x0000000100112134 +[PBXProjectIndex indexArchivePathForProject:] (in DevToolsCore)
7 0x000000010011202b -[PBXProjectIndex indexArchivePath] (in DevToolsCore)
8 0x000000010024b18a __-[PBXProjectIndex initWithProject:]_block_invoke_ (in DevToolsCore)
9 0x00007fff87164056 _dispatch_barrier_sync_f_slow_invoke (in libSystem.B.dylib)
10 0x00007fff87142943 _dispatch_queue_drain (in libSystem.B.dylib)
11 0x00007fff871427a4 _dispatch_queue_invoke (in libSystem.B.dylib)
12 0x00007fff8714234e _dispatch_worker_thread2 (in libSystem.B.dylib)
13 0x00007fff87141c80 _pthread_wqthread (in libSystem.B.dylib)
14 0x00007fff87141b1d start_wqthread (in libSystem.B.dylib)
Has anybody else come across this problem? Any caches beyond the ~/Library/Caches/xcodebuild to clean?
Any help would be very much appreciated.
Best regards,
Frank
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我想通了..显然首选项文件中有一些令人反感的东西。
删除 com.apple.Xcode.plist 就可以了。
Right, I figured it out.. apparently there was something offending in the preferences file.
Deleting com.apple.Xcode.plist did the trick.