swift failed with exit code 1 while compiling in Xcode - possibly related to Bridging-Headers

前端 未结 25 2896
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 02:00

I have an Obj-C Project I\'m trying to migrate to Swift. I did succeed with various classes but recently ran into an issue I can\'t seem to make sense of. When I try to comp

25条回答
  •  眼角桃花
    2020-12-05 02:21

    I just had this same error, the problem was that I had overridden a method with a non-optional parameter and had made the parameter optional in the override. (the method parameter below)

    func logNetworkCallDurationForMethod(method:String, path:String, milliseconds: UInt) {
    
    }
    
    override func logNetworkCallDurationForMethod(method:String?, path:String, milliseconds: UInt) {
    
    }
    

提交回复
热议问题