Xcode Refactor changes storyboard connections inappropriately

Originator:mayoff
Number:rdar://43251953 Date Originated:13-Aug-2018 04:23 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 10.0 beta 6 (10L232m)
Classification:Serious Bug Reproducible:Always
 
Summary:
Dear Xcoderinos,

Thanks for your work on refactoring support in Xcode. Generally, it’s quite nice, but it has a serious bug related to IBActions. If I use the Rename refactoring on an IBAction in a Swift source file, Xcode changes the actions of controls that it shouldn’t change!

For example, create an NSTextField and an NSButton in a storyboard. Connect the NSTextField to action fieldDidFire. Connect the NSButton to action buttonDidFire. Then use the Rename refactoring to rename fieldDidFire to blergDidFire. In the storyboard, Xcode changes both the NSTextField and the NSButton to send the blergDidFire action, even though the buttonDidFire action shouldn’t have been affected in any way.

I will attach my test project and a video demonstrating the problem in that project.

Love,
Rob

Steps to Reproduce:
 

Expected Results:
 

Actual Results:
 

Version:
Version 10.0 beta 6 (10L232m)

Notes:

Comments


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!