Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecoder is ambiguous for type lookup #81

Open
pronebird opened this issue Jul 3, 2017 · 2 comments
Open

JSONDecoder is ambiguous for type lookup #81

pronebird opened this issue Jul 3, 2017 · 2 comments

Comments

@pronebird
Copy link

pronebird commented Jul 3, 2017

JSONDecoder is now a part of Foundation on iOS 11 and there is no way to use JSONDecoder anymore because there are now two of them. I have a code that extends both JSONDecoder and JSONEncoder and both throw an error on Xcode 9 beta:

'JSONDecoder' is ambiguous for type lookup in this context

It seems like JSONCodable will have to prefix its classes.

@matthewcheok
Copy link
Owner

matthewcheok commented Jul 3, 2017

Ideally, this library would become obsolete and we'd migrate to the new built-in Codable protocol in Swift 4. The only possible issue would be if we wanted to support multiple versions of iOS - it's possible the new API is available retrospectively since the Swift runtime is bundled with the application but I have yet to test this.

@emilwojtaszek
Copy link

I've fixed this in #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants