lyft / Lyft-iOS-sdk

Public Lyft SDK for iOS
Other
43 stars 27 forks source link

Use of unresolved identifier 'LyftButton' #18

Open wcarhart opened 6 years ago

wcarhart commented 6 years ago

I'm trying to use the SDK with Swift 4 and Xcode 9.3.

I had the same issue as #17, which I fixed by replacing lines 31 and 32 with:

var urlComponents = URLComponents(url: mutableURLRequest.url!, resolvingAgainstBaseURL: false) 
var localVariable = urlComponents 
urlComponents?.queryItems = (localVariable?.queryItems ?? []) + queryItems 

Per this SO post.

Now when I try to use let lyftButton = LyftButton(), I get the error "Use of unresolved identifier 'LyftButton'".

Is this SDK compatible with Swift 4 and Xcode 9.x? Also opened as a SO post.