gpt4 book ai didi

ios - 反序列化失败与 swift4.2 (xcode10) 中止陷阱 : 6

转载 作者:行者123 更新时间:2023-11-28 17:31:06 25 4
gpt4 key购买 nike

我尝试使用 XCode 10.0 版本将 swift 4 转移到 swift 4.2然后收到这条消息:

*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
could not find 'init(frame:)' in parent class
0 swift 0x00000001050f864a PrintStackTraceSignalHandler(void*) + 42
1 swift 0x00000001050f7dfe SignalHandler(int) + 302
2 libsystem_platform.dylib 0x00007fff77964b3d _sigtramp + 29
3 libsystem_platform.dylib 0x00007ffeee8fb4e0 _sigtramp + 1996057024
4 libsystem_c.dylib 0x00007fff778231c9 abort + 127
5 swift 0x000000010255e0fb swift::ModuleFile::fatal(llvm::Error) + 1915
6 swift 0x0000000102595753 getSILDeclRef(swift::ModuleFile*, llvm::ArrayRef<unsigned long long>, unsigned int&) + 307
7 swift 0x0000000102597a94 swift::SILDeserializer::readVTable(llvm::PointerEmbeddedInt<unsigned int, 31>) + 740
8 swift 0x000000010263e84b swift::SerializedSILLoader::getAllForModule(swift::Identifier, swift::FileUnit*) + 331
9 swift 0x00000001013889be performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 34558
10 swift 0x000000010137cdc5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7717
11 swift 0x0000000101322a35 main + 1349
12 libdyld.dylib 0x00007fff7777b085 start + 1

最后是这样的:

1.  While deserializing SIL vtable for 'MenuNavTitleView' in module 'projectName'
error: Abort trap: 6

我找了一些原因,比如.zero,然后即使我在我的代码中替换了所有的.zero,它仍然有这个问题。

有人知道如何解决这个 fatal error 吗?

最佳答案

我在 Xcode 10.2.1 中遇到了同样的问题。

经过数天的尝试解决后,我发现在我的案例中,这个错误是由继承了 Objective-C 第三方类的 Swift 类引起的(更具体地说是来自 https://github.com/WenchaoD/FSCalendarFSCalendarCell 类) ).

我为 Objective-C 重写了 Swift 类,它编译和运行没有任何问题。

关于ios - 反序列化失败与 swift4.2 (xcode10) 中止陷阱 : 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52509323/

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