镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Expression - name space conflict with Xcode 16/iOS 18 #1269

Open

Description

@neodave

Build Information

0.15.3
Xcode Beta 16
iOS 18/macOS 15
Using Swift Package

When updating to the latest Xcode beta 16 there is a name space conflict between the SGLite struct Expression and the new Expression found in Apple's Foundation framework. Attached are screenshots of both. I will attempt to fix this and if I do I will submit a PR

Screenshot 2024-06-13 at 10 33 24 AM Screenshot 2024-06-13 at 10 27 07 AM

Activity

  1. JohnnyTseng commented on Jun 14, 2024

    @JohnnyTseng

    To anyone who is having this issue, a temporary fix would be adding SQLite namespace before the Expression to let Xcode know we are referring to SQLite's Expression instead of Foundation's.

    Example:

    • Xcode 15
      Expression<String>("id")
    • Xcode 16
      SQLite.Expression<String>("id")

    This would fix this issue

  2. neodave commented on Jun 24, 2024

    @neodave
    Author

    Thank you JohnnyTseng, great info

  3. tcollins590 commented on Jun 25, 2024

    @tcollins590

    Any ideas how to solve this without refactoring our entire codebase to explicitly call SQLite?

  4. kaiwinter commented on Jun 25, 2024

    @kaiwinter

    @tcollins590 You could define a typealias at file level which makes it globally visible:

    typealias Expression = SQLite.Expression

  5. rnapier commented on Jul 5, 2024

    @rnapier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions