bradhilton / SwiftKVC

Key-Value Coding (KVC) for native Swift classes and structs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reflection.ReflectionError with iOS 12 and the new Xcode beta

armintelker opened this issue · comments

Hey when I try to use your library with the new Xcode 10 beta 2 and iOS 12 beta I have following issue:

protocol ITranslation: Value {
    var example: String { get }
}
class TranslationBase: ITranslation {
    var example = "example"
}

let key = "example"
do {
    if let translationString = try translations.get(key: key) as? String {
          print(translationString)
    }

} catch let error {
    print(error) // Reflection.ReflectionError unexpected
}

Do you have an idea how to solve this issue?