Xcode won't recognize a new Swift class

前端 未结 5 1428
时光说笑
时光说笑 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:33

    For me, I had to check the same target memberships on the class as in the ViewController (I had a TodayExtension)

提交回复
热议问题