groue / GRDB.swift

A toolkit for SQLite databases, with a focus on application development
MIT License
6.71k stars 689 forks source link

Compilation failure with Xcode 16 beta 5 due to missing `strcmp` #1588

Closed noremac closed 1 month ago

noremac commented 1 month ago

What did you do?

I attempted to compile a project that uses GRDB 6.29.0 with Xcode 16 beta 5.

What did you expect to happen?

Compile successfully

What happened instead?

StatementAuthorizer.swift is failing to compile due to the error:

Cannot find 'strcmp' in scope

Screenshot 2024-08-06 at 7 21 28 PM

Environment

GRDB flavor(s): GRDB GRDB version: 6.29.0 Installation method: SPM Xcode version: Xcode 16 beta 5 Swift version: I am using Swift 6 in my app but GRDB seems to be using 5.7. Platform(s) running GRDB: iOS macOS version running Xcode: macOS 14.5

noremac commented 1 month ago

Adding this in StatementParser.swift gets past the error. Looks like something was moved around?

#if canImport(Darwin)
import Darwin
#endif
noremac commented 1 month ago

PR here if you'd like it! https://github.com/groue/GRDB.swift/pull/1589

TastyHeadphones commented 1 month ago

Same issue

fnazarios commented 1 month ago

Same issue

groue commented 1 month ago

Resolved in 6.29.1.