Call parameter type does not match function signature!

  • 内容
  • 评论
  • 相关

xcode 15.3报错

Call parameter type does not match function signature!
ptr null
 i64  %16 = call swiftcc i64 @swift_getTypeByMangledNameInContext(ptr %15, i64 %10, ptr null, ptr null) #22, !dbg !2551
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
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           0x0000000105b47f3c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000105b470f8 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000105b48544 SignalHandler(int) + 360
3  libsystem_platform.dylib 0x00000001912ff584 _sigtramp + 56
4  libsystem_pthread.dylib  0x00000001912cec20 pthread_kill + 288
5  libsystem_c.dylib        0x00000001911dba20 abort + 180
6  swift-frontend           0x00000001004516d8 PrettyStackTraceFrontend::~PrettyStackTraceFrontend() + 0
7  swift-frontend           0x0000000105a90a18 llvm::report_fatal_error(llvm::Twine const&, bool) + 280
8  swift-frontend           0x0000000105a90900 llvm::report_fatal_error(llvm::Twine const&, bool) + 0
9  swift-frontend           0x00000001009244b8 llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>) + 0
10 swift-frontend           0x0000000105847ce8 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 224
11 swift-frontend           0x0000000100917490 swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*, llvm::raw_pwrite_stream*) + 3992
12 swift-frontend           0x0000000100918bec swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, llvm::StringRef, llvm::vfs::OutputBackend&, swift::UnifiedStatsReporter*) + 2364
13 swift-frontend           0x0000000100920e70 (anonymous namespace)::LLVMCodeGenThreads::Thread::run() + 156
14 swift-frontend           0x0000000100920dc8 (anonymous namespace)::LLVMCodeGenThreads::runThread(void*) + 12
15 libsystem_pthread.dylib  0x00000001912cef94 _pthread_start + 136
16 libsystem_pthread.dylib  0x00000001912c9d34 thread_start + 8
Command SwiftCompile failed with a nonzero exit code

解决:

将Pods whole-module-optimization 暂时设置为 No Optimization

评论

2条评论
  1. Gravatar 头像

    lance 回复

    所以有人知道这个问题的根源是什么不?

    • Gravatar 头像

      voidcat 回复

      @lance 升级这个json库好了

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注