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

ObjectMapper is show alert "SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0." #1104

Open
JARNBOY opened this issue Aug 10, 2020 · 0 comments

Comments

@JARNBOY
Copy link

JARNBOY commented Aug 10, 2020

Your JSON dictionary:

{
  "name": "ObjectMapper",
  "url": "https://github.com/Hearst-DD/ObjectMapper"
}

Your model:

struct Repo: Mappable {
  var name: String!
  var url: URL!

  init(_ map: Map) {
    name <- map["name"]
    url <- map["url"]
  }
}

What you did:

let repo = Mapper<Repo>().map(myJSONDictionary)

What you expected:

I exepected something like:

Repo(name: "ObjectMapper", url: "https://github.com/Hearst-DD/ObjectMapper")

What you got:

Repo(name: "ObjectMapper", url: nil)  // expected the url is mapped correctly
@JARNBOY JARNBOY changed the title SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. ObjectMapper is show alert "SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0." Aug 10, 2020
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

1 participant