gpt4 book ai didi

swift - 如何修复 Swift 编译问题 trap6

转载 作者:搜寻专家 更新时间:2023-11-01 06:55:16 29 4
gpt4 key购买 nike

问题发生在 Swift3 和 XCode10。这可能是一个 Swift 错误。实际上,clean 和 rebuild 可以解决问题,但是那太浪费时间了。任何人都知道解决或避免问题的有效方法。谢谢

** DESERIALIZATION FAILURE (please include this section in any bug report) ***
could not deserialize type for '_': could not deserialize type for 'operImageView': top-level value not found
Cross-reference to module 'LKImageKit'
... LKImageView

0 swift 0x000000010460f59a PrintStackTraceSignalHandler(void*) + 42
1 swift 0x000000010460ed4e SignalHandler(int) + 302
2 libsystem_platform.dylib 0x00007fff5e91df5a _sigtramp + 26
3 libsystem_platform.dylib 0x00007fe96482b200 _sigtramp + 99668672
4 libsystem_c.dylib 0x00007fff5e6bb1ae abort + 127
5 swift 0x0000000101a74feb swift::ModuleFile::fatal(llvm::Error) + 1915
6 swift 0x0000000101aac643 getSILDeclRef(swift::ModuleFile*, llvm::ArrayRef<unsigned long long>, unsigned int&) + 307
7 swift 0x0000000101aae984 swift::SILDeserializer::readVTable(llvm::PointerEmbeddedInt<unsigned int, 31>) + 740
8 swift 0x0000000101b5576b swift::SerializedSILLoader::getAllForModule(swift::Identifier, swift::FileUnit*) + 331
9 swift 0x000000010089d92e performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 34558
10 swift 0x0000000100891d35 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7717
11 swift 0x0000000100837965 main + 1349
12 libdyld.dylib 0x00007fff5e60f015 start + 1

WSRecommendHeaderCollectionReusableView~partial.swiftmodule
/Users/levinyang/Library/Developer/Xcode/DerivedData/myProject-hgotlvyrysfhcyeakqaatptobuxm/Build/Intermediates.noindex/myProject.build/Debug-iphoneos/myProject.build/Objects-normal/arm64/WSActionSheetRecommendFlowHandler~partial.swiftmodule
---
2. While deserializing SIL vtable for 'WSNotificationOperCell' in module 'myProject'


** DESERIALIZATION FAILURE (please include this section in any bug report) ***
could not deserialize type for '_': could not deserialize type for 'operImageView': top-level value not found
Cross-reference to module 'LKImageKit'
... LKImageView

0 swift 0x000000010460f59a PrintStackTraceSignalHandler(void*) + 42
1 swift 0x000000010460ed4e SignalHandler(int) + 302
2 libsystem_platform.dylib 0x00007fff5e91df5a _sigtramp + 26
3 libsystem_platform.dylib 0x00007fe96482b200 _sigtramp + 99668672
4 libsystem_c.dylib 0x00007fff5e6bb1ae abort + 127
5 swift 0x0000000101a74feb swift::ModuleFile::fatal(llvm::Error) + 1915
6 swift 0x0000000101aac643 getSILDeclRef(swift::ModuleFile*, llvm::ArrayRef<unsigned long long>, unsigned int&) + 307
7 swift 0x0000000101aae984 swift::SILDeserializer::readVTable(llvm::PointerEmbeddedInt<unsigned int, 31>) + 740
8 swift 0x0000000101b5576b swift::SerializedSILLoader::getAllForModule(swift::Identifier, swift::FileUnit*) + 331
9 swift 0x000000010089d92e performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 34558
10 swift 0x0000000100891d35 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7717
11 swift 0x0000000100837965 main + 1349
12 libdyld.dylib 0x00007fff5e60f015 start + 1

WSRecommendHeaderCollectionReusableView~partial.swiftmodule
/Users/levinyang/Library/Developer/Xcode/DerivedData/myProject-hgotlvyrysfhcyeakqaatptobuxm/Build/Intermediates.noindex/myProject.build/Debug-iphoneos/myProject.build/Objects-normal/arm64/WSActionSheetRecommendFlowHandler~partial.swiftmodule
---
2. While deserializing SIL vtable for 'WSNotificationOperCell' in module 'myProject'

error: Abort trap: 6

最佳答案

这是一个 Swift 编译器错误。您可能通过链接由不同版本的编译器编译的模块或其他一些不受支持的行为来触发它,但它可能仍然不应该崩溃。

但是,您说这是 Swift 3 的问题。 Swift 开发人员不再支持 Swift 3。他们正在研究 Swift 5。如果您可以在 Swift 5 中重现该问题,您可以在 https://bugs.swift.org 提交错误报告。 .

关于swift - 如何修复 Swift 编译问题 trap6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53893242/

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