问题
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?
回答1:
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.
回答2:
Use libimobiledevice and from command line run: ./ideviceinfo -k WiFiAddress
来源:https://stackoverflow.com/questions/19819838/retrieving-device-wifi-mac-address-with-ios-7