Xcode 14.3.1 Type Y has no member x

Hi,

We are using Github actions to build our CI/CD. In github actions the highest xcode version possible to use 14.3.1. When trying to build the app using fastlane we encounter several errors

Type 'Circle' has no member 'circle'
Type 'Shape' has no member 'capsule'

When looking at the documentation for circle and capsule both are

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)

capsule

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
extension Shape where Self == Capsule {

    /// A capsule shape aligned inside the frame of the view containing it.
    ///
    /// A capsule shape is equivalent to a rounded rectangle where the corner
    /// radius is chosen as half the length of the rectangle's smallest edge.
    public static var capsule: Capsule { get }

    /// A capsule shape aligned inside the frame of the view containing it.
    ///
    /// A capsule shape is equivalent to a rounded rectangle where the corner
    /// radius is chosen as half the length of the rectangle's smallest edge.
    public static func capsule(style: RoundedCornerStyle) -> Self
}

circle

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
extension Shape where Self == Circle {

    /// A circle centered on the frame of the view containing it.
    ///
    /// The circle's radius equals half the length of the frame rectangle's
    /// smallest edge.
    public static var circle: Circle { get }
}

Does anyone have any idea why would an xcode 14.3.1 and iOS 13.0 available syntax is causing this error?

Thanks

Xcode 14.3.1 Type Y has no member x
 
 
Q