public static void GetUSBDevices(ConnectorRegistry connectors, List <ProcessInfo> processes) { if (!Initialized) { return; } try { uint count = Usbmuxd.UsbmuxdGetDeviceCount(); for (uint i = 0; i < count; i++) { var device = new Usbmuxd.iOSDevice(); if (Usbmuxd.UsbmuxdGetDevice(i, out device) && !string.IsNullOrEmpty(device.udid)) { var name = GetNameForDevice(device); var processId = connectors.GetProcessIdForUniqueId(device.udid); processes.Add(new ProcessInfo(processId, "Unity iOS USB: " + name)); connectors.Connectors[processId] = new iOSUsbConnector(device.udid); } } } catch (Exception e) { LoggingService.LogError("Error while getting USB devices", e); } }
public SoftDebuggerStartInfo SetupConnection() { Usbmuxd.StartIosProxy(port, 56000, udid); var args = new SoftDebuggerConnectArgs(udid, IPAddress.Loopback, port); return(new SoftDebuggerStartInfo(args)); }
static bool SetupDll(string path) { try { Usbmuxd.Setup(path); if (Usbmuxd.IsDllLoaded) { Usbmuxd.StartUsbmuxdListenThread(); } return(true); } catch (Exception e) { LoggingService.LogWarning("Error while initializing usbmuxd", e); return(false); } }
public void OnDisconnect() { Usbmuxd.StopIosProxy(port); }
public UnityAttachInfo SetupConnection() { Usbmuxd.StartIosProxy(port, 56000, udid); return(new UnityAttachInfo(udid, IPAddress.Loopback, port)); }