Skip to content

Ambiguous use of pi after upgrading to Xcode 26.4 beta #84

@shensven

Description

@shensven

After upgrading to Xcode 26.4 beta (17E5159k), code that previously compiled successfully with Xcode 26.3 Release Candidate (17C519), now fails with the following error:

Ambiguous use of 'pi'
Found this candidate in module 'Swift' (Swift.Double.pi)
Found this candidate in module 'CoreFoundation' (CoreFoundation.CGFloat.pi)

The error is triggered at:

var scale = 1 + 0.6 * (1 - pow(sin(relativeX * .pi), 0.4)) + .random(in: 0 ... 0.2, using: &rng)

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