Xcode won't recognize a new Swift class

前端 未结 5 1405
时光说笑
时光说笑 2021-01-03 22:40

I have created a new Swift class in a new file

import Foundation

class RecordedAudio: NSObject{
    var filePathUrl: NSURL!
    var title: String!
}
         


        
5条回答
  •  花落未央
    2021-01-03 23:30

    In my case I had to remove the references from the project navigator, and then add them again (the target membership was not the problem).

提交回复
热议问题