Xcode Swift 3 converter does not update @IBAction references correctly

Originator:gorman.jan
Number:rdar://28334695 Date Originated:2016-09-16
Status:Closed Resolved:
Product:Developer Tools Product Version:Version 8.0 (8A218a)
Classification:Serious Bug Reproducible:Always
 
Summary:
When converting a project that has @IBActions hooked up to a Storyboard in the form of:

@IBAction func doSomething(sender: AnyObject?) {}

The storyboard references are not updated to the name they apparently would expect now which is doSomethingWithSender

Steps to Reproduce:
Open the attached project in the folder "IBAction original" in Xcode 8 and convert to Swift 3 when prompted.
Run the project, press one of the buttons on the storyboard. The app will crash with unrecognizedSelector

Expected Results:
The converter should either: 

* update the storyboards to reference the new names
* better, insert an underscore to ignore the sender: parameter. The names will match

Actual Results:
Nothing is updated, apps crash and all references need to be updated manually.

Version:
Version 8.0 (8A218a)

Notes:


Configuration:


Attachments:
'Archive.zip' was successfully uploaded.

Comments

Running the migration for a second time caught these methods and renamed them correctly.

By gorman.jan at Sept. 20, 2016, 6:02 a.m. (reply...)

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!