uber / uber-ios-sdk

Uber iOS SDK (beta)
https://developer.uber.com/docs
MIT License
376 stars 125 forks source link

Apple mach o linker error when trying to use #172

Closed karthikasdas closed 7 years ago

karthikasdas commented 7 years ago

Hi,

I have been trying to use the following code and Xcode giving me compiler error with apple mach o linker error.

                    let ridesClient = RidesClient()
                    let lat = ((lat!)! as NSString).doubleValue as Double
                    let lon = ((lon!)! as NSString).doubleValue as Double
                    let dropoffLocation = CLLocation(latitude: lat, longitude: lon)
                    let pickupLocation = CLLocation(latitude: (latitude)!, longitude: (longitude)!)

                    var builder = RideParametersBuilder().setPickupLocation(pickupLocation).setDropoffLocation(dropoffLocation)
                    ridesClient.fetchCheapestProduct(pickupLocation: pickupLocation, completion: {
                        product, response in
                        if let productID = product?.productID {
                            builder = builder.setProductID(productID)
                            button?.rideParameters = builder.build()
                            button?.loadRideInformation()
                        }
                    })

If I comment them the app is working.

Kindly suggest!

Thanks,

edjiang commented 7 years ago

Hey @karthikasdas,

Try out the new release and let me know if this solves your problems. https://github.com/uber/rides-ios-sdk/releases/tag/v0.7.0