[Swift] Objective-C methods with varargs are not exposed to Swift

Originator:amolloy
Number:rdar://17302764 Date Originated:6/13/14
Status:Closed Resolved:Duplicate, 15935999
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Variadic Objective-C methods are not exposed to Swift. This makes significant chunks of code unavailable from Swift. Some APIs duplicate variadic methods with similar methods which take an array. These are exposed to Swift, and work fine. However, this puts the onus on framework developers to make sure their APIs are fully exposed to Swift. It would be significantly better if the variadic Objective-C methods were exposed directly in Swift in some fashion.

Steps to Reproduce
1. Load the attached Xcode project and attempt to build it.

Expected Results
The code compiles as is, or perhaps with minor modifications at the call site to handle any special syntax Swift may require.

Actual Results
The project fails to build with errors in ASMSwiftTest.swift because it attempts to use Obj-C APIs involving variadic methods. There does not appear to be any means of working around this problem.

Configuration
Any

Xcode Version
Xcode 6 Beta 1

Additional 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!