UISwipeGestureRecognizer - optional 'target' argument in call for Archive project, but not for Build project

If I archive my project, I get Extra argument in 'target' in call

but I don't get this error if I build the project. If I remove the target

parameter name , I get an error if I create.

let rightSwipeGestureRecognizer: UISwipeGestureRecognizer = UISwipeGestureRecognizer(target: self,    action: "respondToSwipeGesture:")

      

+3


source to share


1 answer


I faced the same issue today where I could not archive even though I hadn't changed a single file in a few days.



I restarted xcode, tried archiving again and it worked. This is xcode bug.

+1


source







All Articles