I have a very puzzling problem.
My app uses several custom buttons that use gesture recognizers to determine a tap or a long press. 

When I run the app from XCode on my device everything works as it should. However, when I package the app in an .ipa file and install that on the same device the buttons no longer work! None of the gestures are recognized nor do they change state when pressed. Everything else seems to work fine...

The devices I tested are an iPhone 5 (running iOS 6.1.4) and iPhone 4 & 4S (both running iOS 6.1.3). And I'm using XCode 4.6.2 on Max OSX 1.8.3.

Any ideas what might be causing this very strange behavior?

PS: The "Xcode generated" code keeps on working after I've disconnected it from XCode.