SWIFT VAPOR Postgres Xcode Build Error: Unable to build Objective-C Module ‘CPOSTGRESQLMAC’

Add steam postgresql connector to Package. Build error after swift

import PackageDescription

let package = Package(
name: "todo_vapor_swift",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion : 1, minor: 5),
.Package(url: "https://github.com/vapor/postgresql-provider", majorVersion: 1, minor: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
]< /pre>

)

Maybe you installed postgress using Postgress.app or other methods. You need to use brew installation to resolve this error.

Run the following command: brew install postgres

Add the steam postgresql connector to the Package . Build error after swift

import PackageDescription

let package = Package(
name: "todo_vapor_swift",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 5),
.Package(url: "https://github.com/vapor/ postgresql-provider", majorVersion: 1, minor: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
]

)

Maybe you use Postgress.app or other methods installed postgress. You need to use brew installation to resolve this error.

Run the following command: brew install postgres

Leave a Comment

Your email address will not be published.