安装 Vapor/MySQL 后无法不带参数调用类型 'posix_spawn_files_actions_t' 的初始值设定项

Cannot invoke initializer for type 'posix_spawn_files_actions_t' with no arguments after installing Vapor/MySQL

我在安装 Vapor/MySQL 后一直收到错误 Cannot invoke initializer for type 'posix_spawn_files_actions_t' with no arguments,由 Terminal.swift 中的这行代码提示:var fileActions = posix_spawn_file_actions_t()。有谁知道什么会提示这个?

如果您在 Xcode 中编译,这是由于 Xcode 以 iOS 设备为目标。将您的 运行 目的地更改为 'My Mac'。