Uploaded image for project: 'Swift'
  1. Swift
  2. SR-7180

Using JSONDecoder's keyDecodingStrategy doesn't compile on linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Foundation
    • Labels:
    • Environment:

      In a docker container from the following docker hub repo

      FROM norionomura/swift:swift-4.1-branch

      Description

      As the title describes when using the new api on macOS it's fine but once you try to compile on Linux here comes the swift compiler
       error: value of type 'JSONDecoder' has no member 'keyDecodingStrategy'

      it then proceeds to ask me if I meant either date or data DecodingStrategy

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andrewangeta Andrew Edwards
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: