我正在使用 Appium 在 iOS 上测试移动应用程序。我想知道是否有办法使用我的 Windows PC 在 iPhone 和 iPad 上启用开发人员选项?
有许多应用程序和测试框架(例如,SeeTestAutomation)能够在不使用 X-Code 或 MacOS 的情况下激活此选项,因此必须有一种方法可以做到这一点。
最佳答案
Developer Disk Image 需要安装到 Apple 移动设备(当 Apple 设备连接到 Apple 计算机时,Xcode 会自动执行此过程)。
您需要安装libimobiledevice您机器上的库,它随 ideviceimagemounter
工具一起提供。此外,您需要具有正确的 DeveloperDiskImage 和 DeveloperDiskImage.signature,其版本与您尝试连接的移动设备的 iOS 版本相同。
使用ideviceimagemounter
:
ideviceimagemounter <pathToDeveloperDiskImage> <pathToDeveloperDiskImageSignature>
如果连接了多个设备,指定设备的udid:
ideviceimagemounter -u <udid> <pathToDeveloperDiskImage> <pathToDeveloperDiskImageSignature>
获取设备的UDID:
idevice_id
您可以从here 获取您的Apple 计算机的DeveloperDiskImage 和签名。 :
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
查看此 ubuntu manual page了解更多详情。
关于ios - 建议在不使用 MacOS 或 Xcode 的情况下在 iOS(最好是 9 及更高版本)上启用开发人员选项的任何解决方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38077978/