Simple enum and interpolation:
enum Test {
case test1
case test2
case test3
}
let a = Test.test1
let b = "\(a)"
From debug window I get:
a = (Test) test1
b = (String) "unknown()"
The problem is that this occurs in my project but not in a playground.
In project:
In playground:
In log I get:
SWIFT RUNTIME BUG: unable to find field metadata for type 'ProjectName.(unknown context at 0x10672213c).Test'
What can be a problem? Project target iOS is 9. I did convert project to swift 4.2. I had this issue on XCode 10 betas and was hoping it will get fixed, but I guess it's not an IDE or Swift problem.


