我刚刚升级到XCode 14,用iOS 16测试我的应用程序,因为在UI中发现了一个bug,但它只是停止了编译(降级到以前的XCode版本13.4再次工作)。
下面是构建项目时的错误堆栈跟踪。
4. While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for EightUsersUI)
5. While running pass #0 SILModuleTransform "SILGenCleanup".
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x0000000114b727f7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x0000000114b71828 llvm::sys::RunSignalHandlers() + 248
2 swift-frontend 0x0000000114b72e10 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff800d3adfd _sigtramp + 29
4 swift-frontend 0x000000010f98cc0e std::__1::__function::__func<swift::evaluator::PerRequestCache swift::evaluator::PerRequestCache::makeEmpty<swift::ProvideDefaultImplForRequest>()::'lambda'(void*), std::__1::allocator<swift::evaluator::PerRequestCache swift::evaluator::PerRequestCache::makeEmpty<swift::ProvideDefaultImplForRequest>()::'lambda'(void*)>, void (void*)>::operator()(void*&&) + 46
5 swift-frontend 0x000000011028f4b1 swift::CanonicalizeInstruction::canonicalize(swift::SILInstruction*) + 49
6 swift-frontend 0x00000001100fda24 (anonymous namespace)::SILGenCleanup::run() + 388
7 swift-frontend 0x000000011011ed35 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 3077
8 swift-frontend 0x000000011013b8fc swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 60
9 swift-frontend 0x0000000110127e69 llvm::Expected<swift::ExecuteSILPipelineRequest::OutputType> swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest>(swift::ExecuteSILPipelineRequest const&) + 537
10 swift-frontend 0x0000000110129f3b swift::runSILDiagnosticPasses(swift::SILModule&) + 187
11 swift-frontend 0x000000010f7ae551 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 65
12 swift-frontend 0x000000010f72f6c6 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1110
13 swift-frontend 0x000000010f7319b5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 5701
14 swift-frontend 0x000000010f6c78ea swift::mainEntry(int, char const**) + 3082
15 dyld 0x00000001258d852e start + 462
Command SwiftCompile failed with a nonzero exit code我尝试过删除和添加Swift包依赖项,但没有运气,清理了派生数据,重新启动了Xcode和mac。我没有主意了。
发布于 2022-09-15 00:07:04
因为与其他类似的问题(如another compiler error )相比,我们的信息非常有限。您的编译器在SILModuleTransform阶段就死了。我建议您删除任何可疑的模块依赖项,并查看您的项目是否编译。顺便说一下,仔细检查模块,例如包/模块名不应该像任何类/结构的名称那样作为示例。

https://stackoverflow.com/questions/73720640
复制相似问题