Xcode strangeness

I have a multi-platform Swift project that contains an ENUM with 450 entriess. When I compile for iPhone/iPad there are no error messages and it runs just fine,

However when I compile for tvOS (AppleTV) its strange

  1. It flags 128 of the enum entries as not found (Type ‘myEnum’ has no member XYZ)
  2. yet the app again runs perfectly … and in order to do so it did in fact use those 128 “missing” enum entries.

So for ATV Xcode says I have 128 “fatal” errors, but does in fact compile and run just fine.

any idea?

No idea. You could report it as a bug in the Swift forum. Somebody from the development team could tell you if it is an actual bug.