swift 4.0: Overriding 'prepare' must be as available as declaration it overrides
问题 I was trying to integrate Apple's ARKit example app into my app. As ARKit is only an additional feature, so I need to support lower versions of iOS. I added @available(iOS 11.0, *) tag to all the ARKit example app classes...It almost works except this 1 error: "Overriding 'prepare' must be as available as declaration it overrides". Any idea how can I resolve this issue ? Xcode error image 回答1: What worked for me was adding the @available attribute above the method like so: @available(iOS 11.3