JSONCodable icon indicating copy to clipboard operation
JSONCodable copied to clipboard

remove JSONCodable protocol

Open emilwojtaszek opened this issue 8 years ago • 2 comments

I've bumped into a problem while using xcode9. Error I was getting was:

'JSONDecoder' is ambiguous for type lookup in this context

The only way to fix this is to put class in proper namespace by add prefix JSONCodable like JSONCodable.JSONDecoder, but there is a problem that compiler want to use protocol called the same, not lib name

the only idea I've figure out is to remove this protocol

emilwojtaszek avatar Aug 16 '17 12:08 emilwojtaszek

I'd really like that patch if it works.

pronebird avatar Aug 16 '17 12:08 pronebird

In the file that produces that error, you can also do import class JSONCodable.JSONDecoder It disambiguates what you are referencing for Xcode !

valerianb avatar Aug 30 '17 12:08 valerianb