Other solutions didn't work form me, here's mine. It applies only to Xcode 8 when running in Swift 2.3 legacy mode:
Looks like Interface Builder is trying to rename the method that should be hooked up to the button.
Here's a radar with more details.
The solution (workaround) is to manually replace the method parameter name to _
:
@IBAction func editPictureTapped(sender: UIButton) { // not working
print("Tapped")
}
Change to this:
@IBAction func editPictureTapped(_: UIButton) { // working OK
print("Tapped")
}