lyft / lyft/Lyft-iOS-sdk

Use of unresolved identifier 'LyftButton'

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
46
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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](https://stackoverflow.com/questions/46126574/overlapping-accesses-to-urlcomponents-but-modification-requires-exclusive-acc).

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](https://stackoverflow.com/questions/50275835/syntax-errors-in-lyft-api-for-ios-wont-compile).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `let lyftButton = LyftButton()` with Swift 4 and Xcode 9.3, then inspect the SDK's public API and usage documentation for the button type. Done means determining whether the SDK supports this toolchain and either restoring a compiling usage path or documenting the incompatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.