Skip to content

Xcode 15: Foundation in iOS 17/macOS Sonoma has a new Predicate type which can conflict with Nimble's Predicate. #1061

@younata

Description

@younata

If you're running Xcode 15, and create a Nimble matcher in a file that also imports Foundation, you'll get a bunch of 'Predicate' is ambiguous for type lookup in this context type build errors.

This can be fixed by disambiguating which Predicate you're using - i.e. Nimble.Predicate instead of simply Predicate.

Edit: This can also be addressed with typealias Predicate = Nimble.Predicate. Which works throughout the entire module.

If this is a large enough problem for people, we might will look into renaming the Predicate API, or providing a typealias for the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions