Implementing Codable for ARAnchor: “cannot be automatically synthesized in an extension…”

后端 未结 3 1358
無奈伤痛
無奈伤痛 2021-01-16 03:59

The code extension ARAnchor: Codable {} produces the error:

\"Implementation of \'Decodable\' cannot be automatically synthesized in an extension in a d

3条回答
  •  时光取名叫无心
    2021-01-16 04:26

    Synthesizing conformace to Codable, Equatable and Hashable in different source files is currently not supported by the Swift compiler, AFAICT. See https://bugs.swift.org/browse/SR-6101 for the issue tracking this.

提交回复
热议问题