uber / rides-ios-sdk

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

Type 'UILayoutPriority' (aka 'Float') has no member 'defaultHigh' in LoginButton.swift #221

Closed priyankamistry09 closed 6 years ago

priyankamistry09 commented 6 years ago

Hi,

I am trying to add uberRides in my existing app using cocoapod. In my pod file I have pod 'UberRides', '~> 0.8' When I compile I am getting error, Type 'UILayoutPriority' (aka 'Float') has no member 'defaultHigh' in LoginButton, RideRequestButton,RideRequestViewController and in RidesUtil files.

I have read issues in other library they say that cocoapods have some issues with Swift 3.2 and swift 4.0

What should I do now?

Please suggest.

edjiang commented 6 years ago

If you get compilation errors with CocoaPods, you may be using Swift 3.2 or no Swift at all in your main target. In that scenario, CocoaPods will set the swift version incorrectly. To fix this, click on your Pods project and select the UberRides and UberCore targets. Search for the Swift Language Version property, and change it to "Swift 4.0".

priyankamistry09 commented 6 years ago

Thanks @edjiang. It solved my problem. :)