Segmentation Fault while archiving on Xcode Version 12.4 (12D4e)

I got error when archiving my project.

I could build my project for running Simulator and Real Device, and when I build it for any iOS Device (arm64) Xcode successfully finish compile.

Ofcourse, these binary could run on the both devices.

But after that, I tried to archive above priject, I got Segmentation fault error.

Error messages are following.

Code Block
Compile Swift source files (arm64)
1. Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
2. While evaluating request IRGenWholeModuleRequest(IR Generation for module AkizukiCart)
3. While emitting IR SIL function "@$s11AkizukiCart12PartsBoxBaseCyAA0C4InfoVSicir".
for read for subscript(_:) (at /Users/jun/Documents/App Develop/Release/AkizukiCart/AkizukiCart/Partsbox Class/PartsBox.swift:224:5)
0 swift 0x000000010b36f615 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swift 0x000000010b36e615 llvm::sys::RunSignalHandlers() + 85
2 swift 0x000000010b36fbcf SignalHandler(int) + 111
3 libsystem_platform.dylib 0x00007fff20495d7d _sigtramp + 29
4 libsystem_malloc.dylib 0x00007fff20279876 tiny_malloc_should_clear + 233
5 swift 0x00000001072c87a3 swift::SILInstructionVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::SILInstruction*) + 1379
6 swift 0x00000001072c3d26 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 8982
7 swift 0x000000010715d3a7 swift::irgen::IRGenerator::emitLazyDefinitions() + 1207
8 swift 0x0000000107295f5a swift::IRGenWholeModuleRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2810
9 swift 0x00000001072c17e5 swift::SimpleRequest<swift::IRGenWholeModuleRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::IRGenWholeModuleRequest const&, swift::Evaluator&) + 37
10 swift 0x000000010729bffd llvm::Expected<swift::IRGenWholeModuleRequest::OutputType> swift::Evaluator::getResultUncached<swift::IRGenWholeModuleRequest>(swift::IRGenWholeModuleRequest const&) + 941
11 swift 0x000000010729543c swift::performIRGeneration(swift::IRGenOptions const&, swift::ModuleDecl*, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::GlobalVariable**, llvm::StringSet<llvm::MallocAllocator>*) + 220
12 swift 0x0000000106ee314c 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*) + 2892
13 swift 0x0000000106ed2f4e swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 21134
14 swift 0x0000000106e53c27 main + 1255
15 libdyld.dylib 0x00007fff2046c621 start + 1
16 libdyld.dylib 0x000000000000008d start + 18446603339974654573
error: Segmentation fault: 11 (in target 'AkizukiCart' from project 'AkizukiCart')

The code which compiler reported as "PartsBox.swift:224:5" are following.

Code Block
extension PartsBoxBase: Collection {
func index(after i: Index) -> Index {
return i + 1
}
var startIndex: Index {
return 0
}
var endIndex: Index {
return parts.count
}
subscript(_ position: Index) -> Element {
return parts[position]
}
}

If I need to add other information, please let me know.

Segmentation Fault while archiving on Xcode Version 12.4 (12D4e)
 
 
Q