I have an extension on DispatchQueue and I have Objective-C code which uses my swift code, so the DispatchQueue extension is exported to the Swift objective-c header as
@interface OS_dispatch_queue
However, Xcode 8.0 and 8.2b2 both error ‘Cannot find interface declaration for ‘OS_dispatch_queue’’. I’ve reported this as a bug, but is there any way I can stop the code being exported to objective-c in the interim?
but I see no reference to `foo` or `OS_dispatch_queue`. What am I missing here?
Other than your bug number (-: Please post that.
Share and Enjoy
···
On 6 Oct 2016, at 20:20, Nick Brook via swift-users <swift-users@swift.org> wrote:
I have an extension on DispatchQueue and I have Objective-C code which uses my swift code, so the DispatchQueue extension is exported to the Swift objective-c header as
@interface OS_dispatch_queue
However, Xcode 8.0 and 8.2b2 both error ‘Cannot find interface declaration for ‘OS_dispatch_queue’’. I’ve reported this as a bug, but is there any way I can stop the code being exported to objective-c in the interim?