1
A
回答
3
你可以从ProcessInfo
类这样的信息:
if let simulatorName = ProcessInfo.processInfo.environment["SIMULATOR_DEVICE_NAME"] {
print("Running on \(simulatorName) simulator")
} else {
print("Running on device")
}
相关问题
- 1. KIF命令行支持在真实设备上运行测试
- 2. 无法在真实设备上运行android junit测试
- 3. 在真实设备上测试iOS
- 4. 在真实设备上测试
- 5. 在真实设备上测试
- 6. 无法在真实设备上运行iOS 10上的Appium测试
- 7. Eclipse - 在真实设备上运行
- 8. Android:在真实设备上运行
- 9. 在真实设备上运行GCM
- 10. 在真实设备上运行Android IndexOutOfBoundsException
- 11. 在真实设备与模拟器上测试iOS测试
- 12. 在仿真器或实际设备上进行测试?
- 13. 在iOS实际设备上运行TestNG自动化测试 - iPad
- 14. 运行UI在设备上测试xcode 7
- 15. iOS应用程序在真实设备上的测试
- 16. 在真实设备上快速测试geopoints解析
- 17. xcode 4.2项目在iPhone上运行|真正的设备
- 18. 在真实的iphone设备上roatation的应用程序测试
- 19. 如何在真实设备上测试我的应用程序?
- 20. 在真实设备上的Android测试应用程序
- 21. 在真实设备上测试我的android应用程序
- 22. 不能在真实设备上运行自动化脚本
- 23. 在OS X上运行存储设备自检测试
- 24. Appium是否需要Xcode才能在iOS设备上运行自动测试?
- 25. UIButton在Xcode8上运行时未在真实设备上显示
- 26. Xcode的OCUnit测试可以在iOS设备上运行,而不是在模拟器上运行
- 27. Android应用程序的虚拟设备上运行,但不是真实设备
- 28. 在真实设备上测试android应用程序
- 29. 在真实设备上测试Android应用程序
- 30. android:在真实设备上测试应用程序