简体   繁体   中英

UISwipeGestureRecognizer extra argument 'target' in call for Archive project but not for Build project

If I Archive my project I receive Extra argument in 'target' in call but I do not receive this error if I Build the project. If I remove the target parameter name then I receive an error if I build.

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

I faced the same issue today where I couldn't archive even though I did not change any of the files in days.

I restarted xcode, tried to archive again and it worked. This is an xcode bug.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM