This is so strange. Usually I could understand that the class is not declared, but it claims that the class of the object itself is not declared. NSObject works, but as my project is set up, I need it to be a clean Swift Object. My class title is as follows:
import UIKit import Foundation class Person: Object {
I know that the foundation is really not needed, I just added it because I was not sure that it caused me problems. The problem arises both in real projects and in playgrounds, as well as in Xcode 6 and the latest version of Xcode 7 with Swift 2.0
source share