How to instantiate IOUSBHostDevice in swift?
https://developer.apple.com/documentation/iousbhost/iousbhostdevice
references as the initializer:
https://developer.apple.com/documentation/iousbhost/iousbhostobject/3181717-initwithioservice
But when I call that init like:
let device = try IOUSBHostDevice(ioService: service, queue: queue)
I get the error:
init(ioService:queue:interestHandler:)' is unavailable in Swift: Please use the refined for Swift API
https://developer.apple.com/documentation/iousbhost/iousbhostdevice
references as the initializer:
https://developer.apple.com/documentation/iousbhost/iousbhostobject/3181717-initwithioservice
But when I call that init like:
let device = try IOUSBHostDevice(ioService: service, queue: queue)
I get the error:
init(ioService:queue:interestHandler:)' is unavailable in Swift: Please use the refined for Swift API