Compiling a xib/storyboard with both custom gesture recognisers and built-in gesture recognisers added to a view crashes ibtoold

Originator:josh
Number:rdar://27838954 Date Originated:14-Aug-2016 02:57 PM
Status:Closed Resolved:Yes
Product:Developer Tools Product Version:Xcode 7.3.1, Xcode 8.0b6
Classification: Reproducible:Always
 
Summary:
When instances of both a custom UIGestureRecognizer subclass and one of the built-in gesture recognisers (eg. UIPanGestureRecogizer) are attached to a view using Xcode's Interface Builder, ibtoold crashes while trying to compile the xib or storyboard containing said view.

Steps to Reproduce:
1. Drag an "Object" from the Object Library on to a view controller.
2. Set the object's class to your custom UIGestureRecognizer's subclass.
3. Drag one of the built-in gesture recognisers (eg. UIPanGestureRecognizer) from the Object Library onto the same view controller.
4. Attach both gesture recognisers to the view controller's view.
5. Try to build the project.

Expected Results:
The storyboard compiles successfully.

Actual Results:
ibtoold crashes while compiling the storyboard.

Version:
* Xcode 7.3.1, Xcode 8.0b5
* OS X 10.11.6

Configuration:
* MacBook Pro (Retina, 15-inch, Mid 2015)

Comments

Fixed in Xcode 8.1. From the release notes:

Added Custom Gesture Recognizer to the object library. Use it for custom subclasses of UIGestureRecognizer or NSGestureRecognizer instead of a plain NSObject. This resolves an issue where a combination of stock and custom gesture recognizers on a UIView fails to compile. (27838954)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!