gpt4 book ai didi

ios - 如何修复 "Xcode quit unexpectedly while using the libclang.dylib plug-in."?

转载 作者:可可西里 更新时间:2023-11-01 03:06:23 25 4
gpt4 key购买 nike

每次启动 xCode (5.1.1) 后,我每次都会遇到这个问题。

删除了用户数据,关闭了源代码控制(如某些帖子所建议的),没有效果,仍然崩溃(同时显示索引......永远不会完成)。 甚至重新安装 xCode,没有任何效果,还是一样。

有人修复过这样的 xCode 吗?

enter image description here

这是崩溃的线程:

 Thread 7 Crashed:: Dispatch queue: IDEIndex PCH Creation Lock
0 libclang.dylib 0x00000001080c60d9 void llvm::BitstreamWriter::EmitRecordWithAbbrevImpl<unsigned long long>(unsigned int, llvm::SmallVectorImpl<unsigned long long>&, llvm::StringRef) + 809
1 libclang.dylib 0x00000001080c5867 void llvm::BitstreamWriter::EmitRecord<unsigned long long>(unsigned int, llvm::SmallVectorImpl<unsigned long long>&, unsigned int) + 71
2 libclang.dylib 0x00000001081e9f25 clang::ASTWriter::WriteASTCore(clang::Sema&, llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::Module*) + 35045
3 libclang.dylib 0x00000001081e160e clang::ASTWriter::WriteAST(clang::Sema&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::Module*, llvm::StringRef, bool) + 6830
4 libclang.dylib 0x00000001080719a3 clang::ASTUnit::Save(llvm::StringRef) + 691
5 libclang.dylib 0x0000000107fe974f clang_saveTranslationUnit + 543
6 com.apple.dt.IDEFoundation 0x0000000106ac63af -[IDEIndexClangTranslationUnit cxTranslationUnit] + 331
7 com.apple.dt.IDEFoundation 0x0000000106c2c11a +[IDEIndexClangDataSource translationUnitForPCHFile:arguments:session:create:] + 259
8 com.apple.dt.IDEFoundation 0x0000000106cf5552 __90-[IDEIndex createPCHFile:arguments:hashCriteria:target:session:willIndex:translationUnit:]_block_invoke + 1739
9 libdispatch.dylib 0x00007fff957012ad _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff95702166 _dispatch_barrier_sync_f_invoke + 39
11 com.apple.dt.DVTFoundation 0x0000000105fce5cf -[DVTDispatchLock performLockedBlock:] + 95
12 com.apple.dt.IDEFoundation 0x0000000106cf4932 -[IDEIndex createPCHFile:arguments:hashCriteria:target:session:willIndex:translationUnit:] + 919
13 com.apple.dt.IDEFoundation 0x0000000106ac4985 -[IDEIndexClangDataSource generateDataForJob:] + 1274
14 com.apple.dt.IDEFoundation 0x0000000106ac42fb -[IDEIndexDataSource processJob:] + 147
15 com.apple.dt.IDEFoundation 0x0000000106ac3e33 +[IDEIndexingEngine runFileJob:] + 732
16 com.apple.dt.IDEFoundation 0x0000000106ac3550 -[IDEIndexingJob run] + 161
17 com.apple.dt.IDEFoundation 0x0000000106c3233c __40-[IDEIndexingJobScheduler _scheduleJobs]_block_invoke + 33
18 libdispatch.dylib 0x00007fff957041d7 _dispatch_call_block_and_release + 12
19 libdispatch.dylib 0x00007fff957012ad _dispatch_client_callout + 8
20 libdispatch.dylib 0x00007fff9570309e _dispatch_root_queue_drain + 326
21 libdispatch.dylib 0x00007fff95704193 _dispatch_worker_thread2 + 40
22 libsystem_pthread.dylib 0x00007fff8ead7ef8 _pthread_wqthread + 314
23 libsystem_pthread.dylib 0x00007fff8eadafb9 start_wqthread + 13

或者您可以在 https://gist.github.com/eppz/10669132 找到完整的崩溃报告。

最佳答案

#import 语句中有一个.m 文件!

一行代码引起的!无法相信。偷了 4 个小时的时间。哦,它是由一个@class语句组合起来的。

它显示为错误,但 xCode/Clang 崩溃的速度甚至比您构建的速度还快。 :D

致命模式:

一个.h

#import "Two.m" // Not easy to spot actually.

@interface One : NSObject
@end

二.h

@class One;
@interface Two : NSObject
@property (nonatomic, weak) One *one;
@end

除非我提到的项目有超过 200 个类,否则我无法重现它。那一定是某种竞争条件。

关于ios - 如何修复 "Xcode quit unexpectedly while using the libclang.dylib plug-in."?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23065373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com