simctl

How to screen record iOS-real device with command?

混江龙づ霸主 提交于 2019-12-14 04:04:27
问题 I need to screen record iOS from iMAC for the purpose of test automation. I found commands for Android and iOS-Simulator which are: adb screenrecord /sdcard/123.mp4 xcrun simctl io recordVideo --type=mp4 However, I need a command for iOS-real device. The purpose of this is for taking video of device during each of test automation sessions. 回答1: iOS 11 has built-in Screen Recording for real devices, you need to check if its possible to do run/stop/getFile from device via command line tools or

Run XCTest bundle with simctl

蓝咒 提交于 2019-12-05 22:16:14
问题 I have a XCTest bundle which I can run through xcode on a simulator by using simctl . I am using the iPhone 6 iOS 9.1 simulator with the following environment variables: export SIMCTL_CHILD_TestBundleLocation="/Users/User/ios_app/DerivedData/primus/Build/Products/Debug-iphonesimulator/Tests.xctest" export SIMCTL_CHILD_XCInjectBundle="/Users/User/ios_app/DerivedData/primus/Build/Products/Debug-iphonesimulator/Tests.xctest" export SIMCTL_CHILD_XCInjectBundleInto="/Users/User/ios_app/DerivedData

Run XCTest bundle with simctl

﹥>﹥吖頭↗ 提交于 2019-12-04 05:48:04
I have a XCTest bundle which I can run through xcode on a simulator by using simctl . I am using the iPhone 6 iOS 9.1 simulator with the following environment variables: export SIMCTL_CHILD_TestBundleLocation="/Users/User/ios_app/DerivedData/primus/Build/Products/Debug-iphonesimulator/Tests.xctest" export SIMCTL_CHILD_XCInjectBundle="/Users/User/ios_app/DerivedData/primus/Build/Products/Debug-iphonesimulator/Tests.xctest" export SIMCTL_CHILD_XCInjectBundleInto="/Users/User/ios_app/DerivedData/primus/Build/Products/Debug-iphonesimulator/ios_app.app/ios_app" export SIMCTL_CHILD