如何开启 Developer 选项
To see the Developer settings, you must provision the device for development and plug it into your Mac while Xcode or Instruments is running. If your device hasn’t been provisioned yet, see Configuring Your Xcode Project for Distribution and Launching Your App on Devices. Even after the device has been provisioned, the Developer setting disappears when the device is rebooted or powered off. To restore the setting, reconnect the device to Xcode or Instruments.
Logging
- Energy
- Networking
Logging 选项中包含以上电量和网络两个选项,开启选项并点击 Start Recording 之后,正常使用你所要测试的 APP,当结束测试时,返回 Logging 界面,点击 Stop Recording。
接着,将手机连接到 Mac,打开 Instruments,选择 Energy Diagnostics,选中 File > Import Logged Data from Device 即可查看到之前记录的数据信息。
Enable UI Automation
启用该选项用于执行 UITest,Xcode 8 中 Automation 项已经从 Instruments 中被移除,由 XCUITest 替代。
Testing with Xcode
WWDC2015
Testing with UI Automation
Xamarin UITest
Network Link Conditioner
模拟网络状况
PassKit Testing
用于接入 PassKit 功能时辅助测试