Post

Replies

Boosts

Views

Activity

Reply to Xcode 15.3 device connection issues
I have filed FB14957989 with logs and reproduce steps, also tried workarounds from TN3158 and your response on 771548022. But it seems like these workaround was mainly for developers who need cable connection instead of 'wifi build' As the only iOS engineer in our team, I need to debug our MFi accessories via network, but it's seems like there's no workaround for wifi connect build for iOS 17.2 device.
Sep ’24
Reply to Proper way to use IOKit in iOS app?
[quote='790467022, DTS Engineer, /thread/756657?answerId=790467022#790467022'] On iOS (as opposed to iPadOS) there are only two ways to work with accessories over USB: [/quote] Thanks eskimo, your reply is pretty straightforward and that's what I need! Last I checked that requires you to build your accessory to support MFi. Yes, and the previous accessory was released successfully, appreciate that :-) We're planning our new module for USB-C iPhone, and I need to evaluate every possibility for bridging an iOS device and our new barcode reader for our team, just some context :))
Jun ’24
Reply to Can iOS communicates with a non-MFi 3rd party device over USB-C?
We're building a scanner device for iPhone15 , which can be a HID input for software keyboard, and have a USB-C port for iPhone to connect, and user can config the scanner from iOS app. I noticed the DriverKit, IOKit and USBDriverKit are not support iOS, is there any alternatives besides join MFi program? The External Accessory framework is only available for MFi licensed devices, right?
Jun ’24
Reply to Pass an enum to notification userInfo in would lead to crash in iOS 14.6
I'm manage to pass parameters to userInfo with one of following methods: // one of following methods can prevent crash issue on iPhone8 with iOS 14.6 // 1. let userInfo: [String : Any] = [ConstValue.connectState:connectState,ConstValue.serialNumber:serialNumber] NotificationCenter.default.post(name: Notification.Name(Global.HomeDeviceStateChange), object: nil, userInfo: userInfo) // 2. NotificationCenter.default.post(name: Notification.Name(Global.HomeDeviceStateChange), object: nil, userInfo: [ConstValue.connectState:connectState, ConstValue.serialNumber:serialNumber]) However it's still unclear why the original method would cause crash on iPhone8 with iOS14.6? //This method would cause crash on iPhone8 with iOS 14.6 var userInfo: [String: Any] = [:] userInfo[ConstValue.connectState] = connectState userInfo[ConstValue.serialNumber] = serialNumber NotificationCenter.default.post(name: Notification.Name(Global.HomeDeviceStateChange), object: nil, userInfo: userInfo)
Apr ’24