Kitura / Swift-Kuery-ORM

An ORM for Swift, built on Codable
Apache License 2.0
212 stars 30 forks source link

Anyone using Swift 5? #137

Closed arron-rgb closed 2 years ago

arron-rgb commented 2 years ago

Context and Description

When I try to build my project, it returns an error.

Screen Shot 2022-02-28 at 3 11 19 AM

I found it is caused by https://github.com/Kitura/CLibpq/blob/master/Package.swift

Environment Details

Swift 5.5 Xcode 13.1

Steps to Reproduce

1) Just followed by this repo's readme

Expected vs. Actual Behaviour

dannys42 commented 2 years ago

Just to confirm, is this Swift 5.5?

arron-rgb commented 2 years ago

yes swift 5.5

dannys42 commented 2 years ago

Strange, it should be working. What version of Swift-Kuery-ORM are you pointing to? If you're using SPM, can you share your Package.swift file?

arron-rgb commented 2 years ago

` // swift-tools-version: 5.5 // The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package( name: "A5", dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: / package url /, from: "1.0.0"), .package(url: "https://github.com/Kitura/Swift-Kuery-ORM.git", from: "1.0.0"), .package(url: "https://github.com/Kitura/Swift-Kuery-PostgreSQL.git", from: "2.2.0"), ], targets: [ .executableTarget( name: "A5", dependencies: [.product(name: "SwiftKueryORM", package: "Swift-Kuery-ORM"), .product(name: "SwiftKueryPostgreSQL", package: "Swift-Kuery-PostgreSQL")] ) ] ) `

dannys42 commented 2 years ago

Ah, I see. I added the swift-tools-version to CLibpq. Can you try and see if that works for you?

arron-rgb commented 2 years ago

it works now thanks