I'm developing a macOS app which needs to detect & get information from connected iOS devices via an USB cable.
I've read here how I can get the name of the devices connected via USB, but I'm only able to get a short name of the device (i.e. iPhone instead of John's iPhone)
I'm looking for a way to retrieve the device's full name, and other information about the device: iOS version, device id, carrier etc.
Can this be achieved using Swift?
Thanks to #Robert's comment, I found out about libimobiledevice's ideviceinfo which does what I needed. I couldn't find a way to directly include it in my app, but I found the imobiledevice-net repo, which has macOS libraries on the release page.
These libraries can be used with the help of Swift's Process class.
Related
I am creating an iOS Application in which I have to show a list of all connected devices on the same network and connect to Android TV. The application's purpose is to create a Remote for Android Tv.
I have used MMLanScan to fetch a list of all connected devices it is returning only IP Addresses but hostnames are nill. Also It's not providing any info to connect with these devices.
I actually want to get a complete idea of how this working will be done in Swift similar to this app
Have somebody worked using this library or any similar one? Any help will be appreciated.
I updated iOS on my phone to 8.3 and I saw this message popup on first boot, but I have not seen it since:
I have been searching all day for information and I can't find a single reference to this message or to Xcode supporting wifi debug.
I am using a macbook pro 2009 model, and I have read that this is not compatible with the new continuity features (as well as airdrop etc). I am wondering if this is part of the wifi debug (and also if BTLE is involved at all). Of course it is all speculation since I cannot find any documentation about this.
Has anybody used wifi debug, or can point me to any documentation?
No, the feature was disabled as it causes serious security flows, for example when debugging you can fake location for any app, access confidential data like your number, udid etc. WiFi can be used now only to sync using iTunes.
It's restricted to USB only. You would need to write a bridge between USB and WiFi. You could in theory connect iPhone to Raspberry Pi, use open source crossplatform libMobileDevice. And mirror all USB requests from your XCode to this device USB.
So, I have this scanner device that scans barcodes. I want it to connect through the USB. I'm not sure how to get the data from the device once it gets scanned. I know it records the barcode info in hexadecimal, so when the data arrives to the application, some conversion will have to take place. But, I'm still very confused on how to actually digitally connect and communicate with the device.
I saw online to try and use IOKit.framework, but I believe it's for MAC, which I'm not using. I'm trying to do it through iOS in the iPhone simulator.
I also have a command list of hexadecimal commands I can send to the device, However, I don't know how to actually send the message to the device.
Apologies if I was a little repetitive. Thanks in advance!
You can't.
iOS Simulator has no access whatsoever to any USB device connected to the Mac.
is there any way to create an ios app that can pair ios device(iphone/ipad) to Mac/PC, so I can send a command like wireless keyboard sent to Mac/PC?
You cannot connect an iPhone to another device for file transfer; the only profiles supported are hands-free and tethering. (Read the rest of the thread for details). There are many ways to transfer data between an iPhone and other devices, but BlueTooth is not on the list.
Also this link may help you.
nevermind,
I've found the way to communicate
Our app is using device WiFiMAC address to uniquely identify a device. As per the
Apple doumentation we shall start using identifierForVendor property of UIDevice but my app is strongly dependent on WiFi MAC address. At run time, app users look into device settings and fetch the WiFi Mac address and manually put them in some tool to enable some feature on server side. Has anyone retrieved the device WiFi MAC address with iOS 7?
This was intentionally removed from the SDK in iOS 7. You can no longer retrieve the MAC address. Techcrunch has one of several stories on it, and it was confirmed at WWDC.
Use libimobiledevice and from command line run:
./ideviceinfo -k WiFiAddress