I have created a new Swift class in a new file
import Foundation class RecordedAudio: NSObject{ var filePathUrl: NSURL! var title: String! }
In the Project Navigator on the left, select the file where you declared RecordedAudio.
Now, in the File inspector on the right, look at the Target Membership. The app target (not the Test target) should be checked, similar to this:
If not, check it! And now all will be well.