GRDB.swift: Xcode 13 beta 5 fails to build GRDB in Release configuration with CocoaPods

What did you do?

Compile a release build on XCode Version 13.0 beta 5 (13A5212g)

Fully aware it’s a beta and likely to break, but just incase it’s a long term change. It seems to be different from #984, but feel free is close if it’s a duplicate.

What happened?

Compliation failed, please see attached screenshot of logs. Happy to provide anything else that may be useful. It seems the #if canImport(Combine) at the top of DatabaseMigrator.swift seems to be the cuprit.

Screenshot 2021-08-18 at 11 36 51

Environment

GRDB flavor(s): (GRDB) GRDB version: 5.9.0 Installation method: CocoaPods Xcode version: Version 13.0 beta 5 (13A5212g) Swift version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.29.102 clang-1300.0.28.1) Platform(s) running GRDB: iOS macOS version running Xcode:: 11.5.2 (20G95)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

My steps:

  1. Fork the repo and clone the fork locally
  2. In the local copy of the fork, modify the Package.swift, changing line 9 to .iOS("13.0"),
  3. Drag the fork’s folder into the Xcode project files list, to use it instead of the main repo

Uh, I just realised I didn’t need to use a fork for a team of one. But yeah, for a team to use you’ll want a fork, so that you can commit the change and use the fork as the project dependency instead of the main repo.

@groue Thank you Groue, thought i’d leave the workaround for others, I had a hunch is was on apple to fix. Many thanks.