Abort trap: 6 error in XCode 12.2

I am using Zoom iOS SDK v5.2.42037.1112 with SwiftUI in XCode 12.2. While compiling it, I am receiving this error:

3.	While deserializing SIL function "$sSo18MobileRTCMeetErrora8rawValues6UInt32Vvg"
0  swift                    0x000000010eb13c15 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  swift                    0x000000010eb14332 SignalHandler(int) + 610
2  libsystem_platform.dylib 0x00007fff20371d7d _sigtramp + 29
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603339975680672
4  libsystem_c.dylib        0x00007fff20280720 abort + 120
5  swift                    0x000000010ad6379f swift::ModuleFile::fatal(llvm::Error) + 2639
6  swift                    0x000000010ada9914 swift::SILDeserializer::readSILInstruction(swift::SILFunction*, swift::SILBasicBlock*, swift::SILBuilder&, unsigned int, llvm::SmallVectorImpl<unsigned long long>&) + 69764
7  swift                    0x000000010ad96f94 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 7236
8  swift                    0x000000010adac298 swift::SILDeserializer::getAllSILFunctions() + 1480
9  swift                    0x000000010ae27513 swift::SILDeserializer::getAll(bool) + 51
10 swift                    0x000000010a45b530 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 288
11 swift                    0x000000010a32b148 performCompileStepsPostSILGen(swift::CompilerInstance&, swift::CompilerInvocation const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1288
12 swift                    0x000000010a31b7ba swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 21802
13 swift                    0x000000010a29c2c1 main + 1265
14 libdyld.dylib            0x00007fff20348631 start + 1
15 libdyld.dylib            0x0000000000000119 start + 18446603339975850729
error: Abort trap: 6

Any solution?

Hey @zishanj

Thank you for using the dev forum!

That is very interesting. This happens at compile time? Is there any specific code that causes this to appear/disappear or does this happen after you have simply imported the frameworks?

Thanks!
Michael

I have downloaded ios-mobilertc-all-5.2.42037.1112-clientlog.zip and copied the lib files into xcode. Then I tried to design layout in SwiftUI and while previewing it in simulator I get this above reported error.

Hey @zishanj,

I am sorry this is happening, that must be frustrating to get this error in the preview. Unfortunately, the SDK is not yet fully integrated with SwiftUI. If you can reproduce this issue outside of SwiftUI we can investigate further, but support for SwiftUI is currently limited.

I will let you know when that changes though.

Thanks!
Michael