Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRDB doesn't compile with Xcode 13 beta 1 #984

Closed
meeloo opened this issue Jun 7, 2021 · 7 comments
Closed

GRDB doesn't compile with Xcode 13 beta 1 #984

meeloo opened this issue Jun 7, 2021 · 7 comments
Labels

Comments

@meeloo
Copy link

meeloo commented Jun 7, 2021

We use GRDB from the main branch with SPM. Upgrading to Xcode 13 beta 1 gives us the following error:
/Users/seb/build/Beam-eoqcbhvhucvnvceedotxvuevvuli/SourcePackages/checkouts/GRDB.swift/GRDB/Core/Database.swift:1602:10: Enum cases with associated values cannot be marked potentially unavailable with '@available'

@groue
Copy link
Owner

groue commented Jun 8, 2021

Hello @meeloo,

Thanks for reporting the issue, and welcome to the beta!

Users of Xcode 13 beta should use the development branch of GRDB.

This branch currently contains GRDB 5.8.0, plus the fix for the error you've seen.

It will also contain all future changes until the release of GRDB 5.9.0.

@groue groue added the support label Jun 8, 2021
@groue groue pinned this issue Jun 8, 2021
@meeloo
Copy link
Author

meeloo commented Jun 9, 2021

Awesome, thanks!

@meeloo meeloo closed this as completed Jun 9, 2021
@groue groue reopened this Jun 10, 2021
@groue
Copy link
Owner

groue commented Jun 10, 2021

You're welcome, happy GRDB!

I'll keep this issue open as long as it is useful

@mhrakoto999
Copy link

Hi all,
GRDB 5.8.0 now compiles with Xcode 13 beta 4 !

@ManheimGreen
Copy link

ManheimGreen commented Aug 1, 2021

Gwendal, hello again. GRDB is as excellent as ever. I return again to these remarkable cyberspaces to report that while manually-incorporated GRDB builds perfectly, manually-incorporated GRDBCustom does not build, with, on macOS 12 (beta 4) and Xcode 13 (beta 4), the following fatal error:

/Users/.../SQLiteCustom/src/configure:1:1: C compiler cannot create executables

Further, this fatal error further causes the following fatal error:

/Users/.../SQLiteCustom/GRDB.h:10:9: 'GRDB/sqlite3.h' file not found

...And of its attendant errors.

This issue is perfectly reproducible in a fresh project with GRDB (GRDBCustom.xcodeproj) incorporated according to the instructions found at Custom SQLite Builds.

I would do more research into this, but my knowledge of the Xcode build process is essentially bupkis — almost literally nonexistent — and I would have no idea where even to begin. Hopefully this helps you, and do let me know if you need more information that I have errantly excluded.

@PatrikTheDev
Copy link

Not sure if this is related but Profiling (and likely release) builds fail in 13b4 (build errors are classified under the GRDB tab)

image

@groue
Copy link
Owner

groue commented Aug 19, 2021

Beta 1 is no longer relevant

@groue groue closed this as completed Aug 19, 2021
@groue groue unpinned this issue Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants