Menu item actions not firing

I originally posted this in the old Developer Forums, but didn't get a response there.


I have an app written in Swift with a WatchKit 1 (i.e. not beta) extension. I have a few different actions that I want to connect to menu items.The problem is, more often than not, hitting the menu item fails to fire the action. Sometimes it works once; usually it doesn't work at all. Buttons connected to the same actions work perfectly, but I don't want visible buttons in the UI for these features. The problem is not with the code in the action failing to have an effect—a breakpoint in the action is not hit.


Has anyone seen anything like this before? Any idea what might be causing it?

hi! I got the same issue with Watch OS 2.0, I don't know why? Have you resolved it yet?

Hey man! I found solution here, it's a silly issue. DISABLE FORCE TOUCH FIRST (Shift + Command + 1) when Menu context is presented:

http://stackoverflow.com/questions/32359633/selector-not-called-on-selecting-menu-item-after-force-touch

Menu item actions not firing
 
 
Q