diff --git a/stdlib/public/SDK/Intents/INRequestRideIntent.swift b/stdlib/public/SDK/Intents/INRequestRideIntent.swift index f3ef9ba81d21f..7819d03415dfc 100644 --- a/stdlib/public/SDK/Intents/INRequestRideIntent.swift +++ b/stdlib/public/SDK/Intents/INRequestRideIntent.swift @@ -33,11 +33,15 @@ extension INRequestRideIntent { paymentMethod: paymentMethod, scheduledPickupTime: scheduledPickupTime) } else { +#if os(iOS) self.init(__pickupLocation: pickupLocation, dropOffLocation: dropOffLocation, rideOptionName: rideOptionName, partySize: partySize.map { NSNumber(value: $0) }, paymentMethod: paymentMethod) +#else + fatalError("The initializer is not available") +#endif } }