SwiftyWalkthrough
SwiftyWalkthrough copied to clipboard
Segmentation Fault 11 using XCode 12.4 in willInteractWithView
Hi 👋
When building our project with XCode 12.4, a segmentation fault 11 occurs with the following stack trace
3. While looking for 'willInteractWithView:'4. While ...in 'UIViewController' (in module 'UIKit')
5. [redacted]dlvqeumreafwivaaazjbchvrmbad/Build/Products/Debug-iphonesimulator/SwiftyWalkthrough/SwiftyWalkthrough.framework/Headers/SwiftyWalkthrough-Swift.h:216:1: importing 'WalkthroughViewDelegate::willInteractWithView:'
0 swift 0x0000000113edd615 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swift 0x0000000113edc615 llvm::sys::RunSignalHandlers() + 85
2 swift 0x0000000113eddbcf SignalHandler(int) + 111
3 libsystem_platform.dylib 0x00007fff6cff75fd _sigtramp + 29
4 libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603338687482400
5 swift 0x0000000110a4bf41 (anonymous namespace)::SwiftDeclConverter::VisitObjCMethodDecl(clang::ObjCMethodDecl const*) + 321
6 swift 0x0000000110a3497d swift::ClangImporter::Implementation::importDeclAndCacheImpl(clang::NamedDecl const*, swift::importer::ImportNameVersion, bool, bool) + 1469
7 swift 0x0000000110a1ea3c swift::ClangImporter::loadObjCMethods(swift::ClassDecl*, swift::ObjCSelector, bool, unsigned int, llvm::TinyPtrVector<swift::AbstractFunctionDecl*>&) + 284
8 swift 0x0000000110b8919d swift::ASTContext::loadObjCMethods(swift::ClassDecl*, swift::ObjCSelector, bool, unsigned int, llvm::TinyPtrVector<swift::AbstractFunctionDecl*>&) + 301
9 swift 0x0000000110d5bc64 swift::ClassDecl::lookupDirect(swift::ObjCSelector, bool) + 180
10 swift 0x0000000110923776 lookupObjCMethodInClass(swift::ClassDecl*, swift::ObjCSelector, bool, bool, swift::SourceManager&, bool) + 54
11 swift 0x0000000110923180 swift::diagnoseUnintendedObjCMethodOverrides(swift::SourceFile&) + 944
12 swift 0x0000000110a0518a swift::performWholeModuleTypeChecking(swift::SourceFile&) + 250
13 swift 0x000000010fb7d0ad swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 8237
14 swift 0x000000010fa3d771 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6833
15 swift 0x000000010f9c1c27 main + 1255
16 libdyld.dylib 0x00007fff6cdfecc9 start + 1
17 libdyld.dylib 0x00000000000001fe start + 18446603338689549622
It seems that the ff offending code inWalkthroughView
can be rewritten while Apple fixes this compiler issue
@objc public protocol WalkthroughViewDelegate {
@objc optional func willInteractWithView(_ view: UIView)
}
Thanks!
Environment: Xcode 12.4 MacOS Catalina 10.15.5