AnderGoig / SwiftInstagram

Instagram API client written in Swift
https://git.io/vdNAn
MIT License
578 stars 81 forks source link

Value of type 'JSONDecoder' has no member 'keyDecodingStrategy' #29

Closed ranhsd closed 6 years ago

ranhsd commented 6 years ago

Hi, I am getting this error after upgrading to the latest version (1.1.1) via cocoapods.

screen shot 2018-04-09 at 22 14 49

I read about it a bit and it looks like a known bug in Swift

https://bugs.swift.org/browse/SR-7180

The problem is that the in older version (1.1.0) I cannot fetch the user media so that's the reason why I upgrade it to the latest one.

KhashayarJan commented 6 years ago

That's not a bug. keyDecodingStrategy is part of Swift 4.1 which is included in Xcode 9.3 update your Xcode and the error will go away